Class: RaccMatchParser::Booking
- Inherits:
-
Struct
- Object
- Struct
- RaccMatchParser::Booking
- Defined in:
- lib/sportdb/parser/racc_tree.rb
Instance Attribute Summary collapse
-
#minute ⇒ Object
Returns the value of attribute minute.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#minute ⇒ Object
Returns the value of attribute minute
26 27 28 |
# File 'lib/sportdb/parser/racc_tree.rb', line 26 def minute @minute end |
#name ⇒ Object
Returns the value of attribute name
26 27 28 |
# File 'lib/sportdb/parser/racc_tree.rb', line 26 def name @name end |
Instance Method Details
#pretty_print(printer) ⇒ Object
34 35 36 |
# File 'lib/sportdb/parser/racc_tree.rb', line 34 def pretty_print( printer ) printer.text( to_s ) end |
#to_s ⇒ Object
27 28 29 30 31 32 |
# File 'lib/sportdb/parser/racc_tree.rb', line 27 def to_s buf = String.new buf << "#{self.name}" buf << " #{self.minute.to_s}" if self.minute buf end |