Class: Sass::Script::Bool
Overview
A SassScript object representing a boolean (true or false) value.
Instance Attribute Summary
- - (Boolean) value (also: #to_bool) readonly The Ruby value of the boolean.
Instance Method Summary
- - (String) to_s(opts = {}) (also: #to_sass) “true” or “false”.
Methods inherited from Literal
#==, #_perform, #assert_int!, #children, #deep_copy, #div, #eq, #initialize, #inspect, #minus, #neq, #null?, #options, #plus, #single_eq, #to_a, #to_i, #unary_div, #unary_minus, #unary_not, #unary_plus
Methods inherited from Node
#_perform, #children, #dasherize, #deep_copy, #opts, #perform
Constructor Details
This class inherits a constructor from Sass::Script::Literal
Instance Attribute Details
- (Boolean) value (readonly) Also known as: to_bool
The Ruby value of the boolean.
9 10 11 |
# File '/var/www/sass-pages/.sass/lib/sass/script/bool.rb', line 9
def value
@value
end
|
Instance Method Details
- (String) to_s(opts = {}) Also known as: to_sass
“true” or “false”
13 14 15 |
# File '/var/www/sass-pages/.sass/lib/sass/script/bool.rb', line 13
def to_s(opts = {})
@value.to_s
end
|