Class: XapTreetop::MessageBlock

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/xap/parser/xap_nodes.rb

Instance Method Summary collapse

Instance Method Details

#nameObject



73
74
75
# File 'lib/xap/parser/xap_nodes.rb', line 73

def name
	keyword.text_value
end

#to_sObject



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

#valuesObject



77
78
79
# File 'lib/xap/parser/xap_nodes.rb', line 77

def values
	pairs.to_hash
end