Class: Twig::Node::Expression::Unary::Spread
- Defined in:
- lib/twig/node/expression/unary/spread.rb
Instance Attribute Summary
Attributes inherited from Base
#attributes, #lineno, #nodes, #source_context, #tag
Instance Method Summary collapse
Methods inherited from Base
Methods inherited from Base
#explicit_parentheses?, #set_explicit_parentheses
Methods inherited from Base
#empty?, #initialize, #length, #template_name, #to_s
Constructor Details
This class inherits a constructor from Twig::Node::Expression::Unary::Base
Instance Method Details
#compile(compiler) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/twig/node/expression/unary/spread.rb', line 8 def compile(compiler) compiler. raw('::Twig::Runtime::Spread.new('). subcompile(nodes[:node]). raw(')') end |