Class: Sass::Script::Value::Null
- Inherits:
-  Base - Object
- Base
- Sass::Script::Value::Null
 
- Defined in:
- /Users/ceppstei/Projects/sass-lang/.sass/lib/sass/script/value/null.rb
Overview
A SassScript object representing a null value.
Constant Summary
Instance Attribute Summary
Attributes inherited from Base
#options, #source_range, #value
Instance Method Summary (collapse)
-   - (String) inspect   Returns a string representing a null value. 
-   - (Boolean) null?   true.
-   - (Boolean) to_bool   false(the Ruby boolean value).
-   - (String) to_s(opts = {})   ‘’ (An empty string). 
- - to_sass(opts = {})
Methods inherited from Base
#==, #_perform, #assert_int!, #div, #eq, #eql?, #hash, #initialize, #minus, #neq, #plus, #separator, #single_eq, #to_a, #to_h, #to_i, #unary_div, #unary_minus, #unary_not, #unary_plus
Constructor Details
This class inherits a constructor from Sass::Script::Value::Base
Instance Method Details
- (String) inspect
Returns a string representing a null value.
| 40 41 42 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/script/value/null.rb', line 40
def inspect
  'null'
end | 
- (Boolean) null?
Returns true
| 24 25 26 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/script/value/null.rb', line 24
def null?
  true
end | 
- (Boolean) to_bool
Returns false (the Ruby boolean value)
| 19 20 21 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/script/value/null.rb', line 19
def to_bool
  false
end | 
- (String) to_s(opts = {})
Returns ‘’ (An empty string)
| 29 30 31 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/script/value/null.rb', line 29
def to_s(opts = {})
  ''
end | 
- to_sass(opts = {})
| 33 34 35 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/script/value/null.rb', line 33
def to_sass(opts = {})
  'null'
end |