Class: Twig::TokenParser::Do
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Instance Method Details
#parse(token) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/twig/token_parser/do.rb', line 6 def parse(token) expr = parser.parse_expression parser.stream.expect(Token::BLOCK_END_TYPE) Node::Do.new(expr, token.lineno) end |
#tag ⇒ Object
14 15 16 |
# File 'lib/twig/token_parser/do.rb', line 14 def tag 'do' end |