Class: Rulex::Tex::Grammar::Environment

Inherits:
CustomNode
  • Object
show all
Defined in:
lib/rulex/tex/node_extensions.rb

Instance Method Summary collapse

Instance Method Details

#contentObject



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