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
85 86 87 |
# File 'lib/sportdb/parser/racc_tree.rb', line 85 def minute @minute end |
#name ⇒ Object
Returns the value of attribute name
85 86 87 |
# File 'lib/sportdb/parser/racc_tree.rb', line 85 def name @name end |
Instance Method Details
#pretty_print(printer) ⇒ Object
93 94 95 |
# File 'lib/sportdb/parser/racc_tree.rb', line 93 def pretty_print( printer ) printer.text( to_s ) end |
#to_s ⇒ Object
86 87 88 89 90 91 |
# File 'lib/sportdb/parser/racc_tree.rb', line 86 def to_s buf = String.new buf << "#{self.name}" buf << " #{self.minute.to_s}" if self.minute buf end |