Class: Twig::Node::Expression::Binary::Concat
- Inherits:
-
Binary::Base
- Object
- Binary::Base
- Twig::Node::Expression::Binary::Concat
- Defined in:
- lib/twig/node/expression/binary/concat.rb
Instance Method Summary collapse
Instance Method Details
#compile(compiler) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/twig/node/expression/binary/concat.rb', line 8 def compile(compiler) compiler. raw('('). subcompile(nodes[:left]). raw(').to_s + ('). subcompile(nodes[:right]). raw(').to_s') end |