Class: RaccMatchParser::DateHeader
- Inherits:
-
Struct
- Object
- Struct
- RaccMatchParser::DateHeader
- Defined in:
- lib/sportdb/parser/racc_tree.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#year ⇒ Object
Returns the value of attribute year.
Instance Method Summary collapse
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date
170 171 172 |
# File 'lib/sportdb/parser/racc_tree.rb', line 170 def date @date end |
#year ⇒ Object
Returns the value of attribute year
170 171 172 |
# File 'lib/sportdb/parser/racc_tree.rb', line 170 def year @year end |
Instance Method Details
#pretty_print(printer) ⇒ Object
171 172 173 174 175 176 |
# File 'lib/sportdb/parser/racc_tree.rb', line 171 def pretty_print( printer ) printer.text( "<DateHeader " ) printer.text( "#{self.date.pretty_inspect}" ) if self.date printer.text( "#{self.year.pretty_inspect}" ) if self.year printer.text( ">") end |