Class: Twig::Node::AutoEscape
- Inherits:
-
Node::Base
- Object
- Node::Base
- Twig::Node::AutoEscape
- Defined in:
- lib/twig/node/auto_escape.rb
Instance Method Summary collapse
- #compile(compiler) ⇒ Object
-
#initialize(value, body, lineno) ⇒ AutoEscape
constructor
A new instance of AutoEscape.
Constructor Details
#initialize(value, body, lineno) ⇒ AutoEscape
Returns a new instance of AutoEscape.
9 10 11 |
# File 'lib/twig/node/auto_escape.rb', line 9 def initialize(value, body, lineno) super({ body: }, { value: }, lineno) end |
Instance Method Details
#compile(compiler) ⇒ Object
13 14 15 |
# File 'lib/twig/node/auto_escape.rb', line 13 def compile(compiler) compiler.subcompile(nodes[:body]) end |