class Sass::Script::Null - sass-3.2.19 Documentation

# class Sass::Script::Null

A SassScript object representing a null value.

### Public Class Methods

new() click to toggle source

Creates a new null literal.

Calls superclass method Sass::Script::Literal.new

    # File lib/sass/script/null.rb, line 7
    def initialize
      super nil
    end

### Public Instance Methods

inspect() click to toggle source

Returns a string representing a null value.

@return [String]

    # File lib/sass/script/null.rb, line 33
    def inspect
      'null'
    end

null?() click to toggle source

@return [Boolean] `true`

    # File lib/sass/script/null.rb, line 17
    def null?
      true
    end

to_bool() click to toggle source

@return [Boolean] `false` (the Ruby boolean value)

    # File lib/sass/script/null.rb, line 12
    def to_bool
      false
    end

to_s(opts = {}) click to toggle source

@return [String] '' (An empty string)

    # File lib/sass/script/null.rb, line 22
    def to_s(opts = {})
      ''
    end

to_sass(opts = {}) click to toggle source

    # File lib/sass/script/null.rb, line 26
    def to_sass(opts = {})
      'null'
    end