class Keisan::AST::Null

Public Class Methods

new() click to toggle source
# File lib/keisan/ast/null.rb, line 4
def initialize
end

Public Instance Methods

equal(other) click to toggle source
Calls superclass method Keisan::AST::ConstantLiteral#equal
# File lib/keisan/ast/null.rb, line 15
def equal(other)
  other = other.to_node
  other.is_a?(AST::Null) ? Boolean.new(value == other.value) : super
end
not_equal(other) click to toggle source
Calls superclass method Keisan::AST::ConstantLiteral#not_equal
# File lib/keisan/ast/null.rb, line 20
def not_equal(other)
  other = other.to_node
  other.is_a?(AST::Null) ? Boolean.new(value != other.value) : super
end
true?() click to toggle source
# File lib/keisan/ast/null.rb, line 11
def true?
  false
end
value(context = nil) click to toggle source
# File lib/keisan/ast/null.rb, line 7
def value(context = nil)
  nil
end