Class: RaccMatchParser::RoundDef
- Inherits:
-
Struct
- Object
- Struct
- RaccMatchParser::RoundDef
- Defined in:
- lib/sportdb/parser/racc_tree.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date
160 161 162 |
# File 'lib/sportdb/parser/racc_tree.rb', line 160 def date @date end |
#duration ⇒ Object
Returns the value of attribute duration
160 161 162 |
# File 'lib/sportdb/parser/racc_tree.rb', line 160 def duration @duration end |
#name ⇒ Object
Returns the value of attribute name
160 161 162 |
# File 'lib/sportdb/parser/racc_tree.rb', line 160 def name @name end |
Instance Method Details
#pretty_print(printer) ⇒ Object
161 162 163 164 165 166 167 |
# File 'lib/sportdb/parser/racc_tree.rb', line 161 def pretty_print( printer ) printer.text( "<RoundDef " ) printer.text( self.name ) printer.text( " date=" + self.date.pretty_inspect ) if self.date printer.text( " duration=" + self.duration.pretty_inspect ) if self.duration printer.text( ">" ) end |