A SassScript object representing a boolean (true or false) value.
We override object creation so that users of the core API will not need to know that booleans are specific constants.
@param value A ruby value that will be tested for truthiness. @return [Bool] TRUE if value is truthy, FALSE if value is falsey
# File lib/sass/script/value/bool.rb, line 19 def self.new(value) value ? TRUE : FALSE end
# File lib/sass/script/value/bool.rb, line 23 def eq(other) return other.eq(self) if other.is_a?(DeprecatedFalse) super end
@return [String] “true” or “false”
# File lib/sass/script/value/bool.rb, line 35 def to_s(opts = {}) @value.to_s end
Generated with the Darkfish Rdoc Generator 2.