Class: Code::Node::String::Part::Code

Inherits:
Code::Node
  • Object
show all
Defined in:
lib/code/node/string.rb

Instance Method Summary collapse

Methods inherited from Code::Node

#resolve

Constructor Details

#initialize(parsed) ⇒ Code

Returns a new instance of Code.



8
9
10
# File 'lib/code/node/string.rb', line 8

def initialize(parsed)
  @code = Node::Code.new(parsed)
end

Instance Method Details

#evaluate(**args) ⇒ Object



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

def evaluate(**args)
  @code.evaluate(**args)
end