Class: Treetop::Runtime::SyntaxNode
- Inherits:
-
Object
- Object
- Treetop::Runtime::SyntaxNode
show all
- Defined in:
- lib/rulex/tex/node_extensions.rb
Instance Method Summary
collapse
Instance Method Details
#content ⇒ Object
12
13
14
|
# File 'lib/rulex/tex/node_extensions.rb', line 12
def content
{}
end
|
#node_content ⇒ Object
6
7
8
9
10
11
|
# File 'lib/rulex/tex/node_extensions.rb', line 6
def node_content
h = {type: :node} h.merge!(:children => elements.map{|e| e.node_content}) if elements && !elements.empty?
h.merge!(log: text_value)
h.merge! content
end
|