A SassScript object representing a `false` value that came from a call to `index()`. It will print deprecation warnings if it’s used with `==`.
# File lib/sass/script/value/deprecated_false.rb, line 20 def eq(other) if other.value == false && !warned? self.warned = true Sass::Util.sass_warn DEPRECATION WARNING: The return value of index() will change from "false" to"null" in future versions of Sass. For compatibility, avoid using "== false" onthe return value. For example, instead of "@if index(...) == false", just write"@if not index(...)". + @global_env.stack.to_s.gsub(/^/, ' ') end Bool.new(other.value == false) end
# File lib/sass/script/value/deprecated_false.rb, line 33 def neq(other) if other.value.nil? && !warned? self.warned = true Sass::Util.sass_warn DEPRECATION WARNING: The return value of index() will change from "false" to"null" in future versions of Sass. For compatibility, avoid using "!= null" onthe return value. + @global_env.stack.to_s.gsub(/^/, ' ') end Bool.new(other.value != false) end
Generated with the Darkfish Rdoc Generator 2.