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(parsed) ⇒ Nothing

Returns a new instance of Nothing.



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

def initialize(parsed)
  return if parsed.blank?

  @nothing = parsed.presence
end

Instance Method Details

#evaluate(**_args) ⇒ Object



12
13
14
# File 'lib/code/node/nothing.rb', line 12

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