Class: Template::Node::CodePart
- Inherits:
-
Template::Node
- Object
- Code::Node
- Template::Node
- Template::Node::CodePart
- Defined in:
- lib/template/node/code_part.rb
Instance Method Summary collapse
- #evaluate(**args) ⇒ Object
-
#initialize(code) ⇒ CodePart
constructor
A new instance of CodePart.
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 |