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
255 256 257 |
# File 'lib/sportdb/parser/racc_tree.rb', line 255 def text @text end |
Instance Method Details
#pretty_print(printer) ⇒ Object
256 257 258 |
# File 'lib/sportdb/parser/racc_tree.rb', line 256 def pretty_print( printer ) printer.text( "<Heading1 #{self.text}>" ) end |