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
136 137 138 |
# File 'lib/sportdb/parser/racc_tree.rb', line 136 def date @date end |
#geo ⇒ Object
Returns the value of attribute geo
136 137 138 |
# File 'lib/sportdb/parser/racc_tree.rb', line 136 def geo @geo end |
#time ⇒ Object
Returns the value of attribute time
136 137 138 |
# File 'lib/sportdb/parser/racc_tree.rb', line 136 def time @time end |
#timezone ⇒ Object
Returns the value of attribute timezone
136 137 138 |
# File 'lib/sportdb/parser/racc_tree.rb', line 136 def timezone @timezone end |
Instance Method Details
#pretty_print(printer) ⇒ Object
137 138 139 140 141 142 143 144 |
# File 'lib/sportdb/parser/racc_tree.rb', line 137 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 |