Class: RaccMatchParser::Heading1
- Inherits:
-
Struct
- Object
- Struct
- RaccMatchParser::Heading1
- Defined in:
- lib/sportdb/parser/racc_tree.rb
Overview
todo/check - use a generic Heading instead of Heading1/2/3 - why? why not?
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
222 223 224 |
# File 'lib/sportdb/parser/racc_tree.rb', line 222 def text @text end |
Instance Method Details
#pretty_print(printer) ⇒ Object
223 224 225 |
# File 'lib/sportdb/parser/racc_tree.rb', line 223 def pretty_print( printer ) printer.text( "<Heading1 #{self.text}>" ) end |