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.
-
#geo ⇒ Object
Returns the value of attribute geo.
-
#time ⇒ Object
Returns the value of attribute time.
-
#timezone ⇒ Object
Returns the value of attribute timezone.
Instance Method Summary collapse
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date
143 144 145 |
# File 'lib/sportdb/parser/racc_tree.rb', line 143 def date @date end |
#geo ⇒ Object
Returns the value of attribute geo
143 144 145 |
# File 'lib/sportdb/parser/racc_tree.rb', line 143 def geo @geo end |
#time ⇒ Object
Returns the value of attribute time
143 144 145 |
# File 'lib/sportdb/parser/racc_tree.rb', line 143 def time @time end |
#timezone ⇒ Object
Returns the value of attribute timezone
143 144 145 |
# File 'lib/sportdb/parser/racc_tree.rb', line 143 def timezone @timezone end |
Instance Method Details
#pretty_print(printer) ⇒ Object
144 145 146 147 148 149 150 151 |
# File 'lib/sportdb/parser/racc_tree.rb', line 144 def pretty_print( printer ) printer.text( "<DateHeader " ) printer.text( "#{self.date.pretty_inspect}" ) printer.text( " time=#{self.time.pretty_inspect}" ) if self.time printer.text( " geo=#{self.geo.pretty_inspect}" ) if self.geo printer.text( " timezone=#{self.timezone}") if self.timezone printer.text( ">") end |