Class: Twig::Node::Expression::Binary::Matches
- Inherits:
-
Binary::Base
- Object
- Binary::Base
- Twig::Node::Expression::Binary::Matches
- Defined in:
- lib/twig/node/expression/binary/matches.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/matches.rb', line 8 def compile(compiler) compiler. raw('::Twig::Extension::Core.matches('). subcompile(nodes[:right]). raw(', '). subcompile(nodes[:left]). raw(')') end |
#operator(compiler) ⇒ Object
17 18 19 |
# File 'lib/twig/node/expression/binary/matches.rb', line 17 def operator(compiler) compiler.raw('') end |