Class: Template::Node::CodePart

Inherits:
Template::Node show all
Defined in:
lib/template/node/code_part.rb

Instance Method Summary collapse

Constructor Details

#initialize(code) ⇒ CodePart

Returns a new instance of CodePart.



6
7
8
# File 'lib/template/node/code_part.rb', line 6

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

Instance Method Details

#evaluate(**args) ⇒ Object



10
11
12
# File 'lib/template/node/code_part.rb', line 10

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