Sha256: ef5c21b81055d6524c2b45fb9cbe78114454d1a955ec0a96d95c32b9894d8506
Contents?: true
Size: 623 Bytes
Versions: 35
Compression:
Stored size: 623 Bytes
Contents
require 'sass/script/literal' module Sass::Script # A SassScript object representing a null value. class Null < Literal # Creates a new null literal. def initialize super nil 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
35 entries across 34 versions & 9 rubygems