Class: SportDb::Parser::NoteLine
- Defined in:
- lib/sportdb/parser/parse_tree.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text
136 137 138 |
# File 'lib/sportdb/parser/parse_tree.rb', line 136 def text @text end |
Instance Method Details
#as_json ⇒ Object
137 138 139 |
# File 'lib/sportdb/parser/parse_tree.rb', line 137 def as_json(*) ['<NoteLine>', { 'text' => text.as_json } ] end |
#pretty_print(q) ⇒ Object
140 141 142 143 144 |
# File 'lib/sportdb/parser/parse_tree.rb', line 140 def pretty_print( q ) q.group( 4, '<NoteLine ', '>' ) do q.text( text ) end end |