Class: Code::Node::Nothing

Inherits:
Code::Node show all
Defined in:
lib/code/node/nothing.rb

Instance Method Summary collapse

Methods inherited from Code::Node

#resolve

Constructor Details

#initialize(nothing) ⇒ Nothing

Returns a new instance of Nothing.



6
7
8
# File 'lib/code/node/nothing.rb', line 6

def initialize(nothing)
  @nothing = nothing
end

Instance Method Details

#evaluate(**_args) ⇒ Object



10
11
12
# File 'lib/code/node/nothing.rb', line 10

def evaluate(**_args)
  ::Code::Object::Nothing.new
end