Class: XapTreetop::MessageBlock
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- XapTreetop::MessageBlock
- Defined in:
- lib/xap/parser/xap_nodes.rb
Instance Method Summary collapse
Instance Method Details
#name ⇒ Object
73 74 75 |
# File 'lib/xap/parser/xap_nodes.rb', line 73 def name keyword.text_value end |
#to_s ⇒ Object
81 82 83 84 85 86 |
# File 'lib/xap/parser/xap_nodes.rb', line 81 def to_s s = "#{keyword.text_value}\n{\n" s << pairs.to_s s << "}\n" s end |
#values ⇒ Object
77 78 79 |
# File 'lib/xap/parser/xap_nodes.rb', line 77 def values pairs.to_hash end |