class Sass::Script::Value::Bool
A SassScript object representing a boolean (true or false) value.
Constants
- FALSE
-
The false value in SassScript.
This is assigned before new is overridden below so that we use the default implementation.
- TRUE
-
The true value in SassScript.
This is assigned before new is overridden below so that we use the default implementation.
Attributes
The Ruby value of the boolean.
@return [Boolean]
The Ruby value of the boolean.
@return [Boolean]
Public Class Methods
Source
# File lib/sass/script/value/bool.rb, line 19 def self.new(value) value ? TRUE : FALSE end
Public Instance Methods
Source
# File lib/sass/script/value/bool.rb, line 30 def to_s(opts = {}) @value.to_s end
@return [String] βtrueβ or βfalseβ
Also aliased as: to_sass