Sha256: 7bd1308719e8d79135b22c8ee09dfc99b0acb4dab59154eab9afa3c155fda531
Contents?: true
Size: 905 Bytes
Versions: 22
Compression:
Stored size: 905 Bytes
Contents
module Sass::Script::Value # A SassScript object representing a null value. class Null < Base # The null value in SassScript. # # This is assigned before new is overridden below so that we use the default implementation. NULL = new(nil) # 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. def self.new NULL end # @return [Boolean] `false` (the Ruby boolean value) def to_bool false end # @return [Boolean] `true` def null? true end # @return [String] '' (An empty string) def to_s(opts = {}) '' end def to_sass(opts = {}) 'null' end # Returns a string representing a null value. # # @return [String] def inspect 'null' end end end
Version data entries
22 entries across 22 versions & 1 rubygems