Class: Sass::Script::Bool
- Defined in:
- lib/sass/script/bool.rb
Overview
A SassScript object representing a boolean (true or false) value.
Instance Attribute Summary collapse
-
#value ⇒ Boolean
(also: #to_bool)
readonly
The Ruby value of the boolean.
Instance Method Summary collapse
-
#to_s ⇒ String
"true" or "false".
Methods inherited from Literal
#==, #and, #assert_int!, #comma, #concat, #div, #eq, #initialize, #inspect, #minus, #neq, #or, #perform, #plus, #to_i, #unary_div, #unary_minus, #unary_not
Methods inherited from Node
Constructor Details
This class inherits a constructor from Sass::Script::Literal
Instance Attribute Details
#value ⇒ Boolean (readonly) Also known as: to_bool
The Ruby value of the boolean.
9 10 11 |
# File 'lib/sass/script/bool.rb', line 9
def value
@value
end
|
Instance Method Details
#to_s ⇒ String
Returns "true" or "false".
13 14 15 |
# File 'lib/sass/script/bool.rb', line 13
def to_s
@value.to_s
end
|