class Sass::Script::Value::Null
A SassScript object representing a null value.
Constants
- NULL
-
The null value in SassScript.
This is assigned before new is overridden below so that we use the default implementation.
Public Class Methods
Source
# File lib/sass/script/value/null.rb, line 14 def self.new NULL end
We override object creation so that users of the core API will not need to know that null is a specific constant.
@private @return [Null] the {NULL} constant.
Public Instance Methods
Source
# File lib/sass/script/value/null.rb, line 40 def inspect 'null' end
Returns a string representing a null value.
@return [String]
Source
# File lib/sass/script/value/null.rb, line 24 def null? true end
@return [Boolean] ‘true`
Source
# File lib/sass/script/value/null.rb, line 19 def to_bool false end
@return [Boolean] ‘false` (the Ruby boolean value)
Source
# File lib/sass/script/value/null.rb, line 29 def to_s(opts = {}) '' end
@return [String] ” (An empty string)
Source
# File lib/sass/script/value/null.rb, line 33 def to_sass(opts = {}) 'null' end