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
64 65 66 |
# File 'lib/sportdb/parser/racc_tree.rb', line 64 def date @date end |
#duration ⇒ Object
Returns the value of attribute duration
64 65 66 |
# File 'lib/sportdb/parser/racc_tree.rb', line 64 def duration @duration end |
#name ⇒ Object
Returns the value of attribute name
64 65 66 |
# File 'lib/sportdb/parser/racc_tree.rb', line 64 def name @name end |
Instance Method Details
#pretty_print(printer) ⇒ Object
65 66 67 68 69 70 71 |
# File 'lib/sportdb/parser/racc_tree.rb', line 65 def pretty_print( printer ) printer.text( "<RoundDef " ) printer.text( self.name ) printer.text( " date=" + self.date.pretty_inspect ) if date printer.text( " durattion=" + self.duration.pretty_inspect ) if duration printer.text( ">" ) end |