Class: Rulex::Tex::Grammar::Environment
- Inherits:
-
CustomNode
- Object
- Treetop::Runtime::SyntaxNode
- CustomNode
- Rulex::Tex::Grammar::Environment
- Defined in:
- lib/rulex/tex/node_extensions.rb
Instance Method Summary collapse
Instance Method Details
#content ⇒ Object
54 55 56 |
# File 'lib/rulex/tex/node_extensions.rb', line 54 def content {type: :environment, name: elements[1].text_value, children: elements[3].elements.map{|e| e.content }} end |