Class: Keisan::Tokens::Null

Inherits:
Keisan::Token show all
Defined in:
lib/keisan/tokens/null.rb

Constant Summary collapse

REGEX =
/(\bnil\b)/

Instance Attribute Summary

Attributes inherited from Keisan::Token

#string

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Keisan::Token

#initialize, #regex, #type, type

Constructor Details

This class inherits a constructor from Keisan::Token

Class Method Details

.regexObject



6
7
8
# File 'lib/keisan/tokens/null.rb', line 6

def self.regex
  REGEX
end

Instance Method Details

#valueObject



10
11
12
# File 'lib/keisan/tokens/null.rb', line 10

def value
  nil
end