Class: RaccMatchParser::Card
- Inherits:
-
Struct
- Object
- Struct
- RaccMatchParser::Card
- 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
123 124 125 |
# File 'lib/sportdb/parser/racc_tree.rb', line 123 def minute @minute end |
#name ⇒ Object
Returns the value of attribute name
123 124 125 |
# File 'lib/sportdb/parser/racc_tree.rb', line 123 def name @name end |
Instance Method Details
#pretty_print(printer) ⇒ Object
131 132 133 |
# File 'lib/sportdb/parser/racc_tree.rb', line 131 def pretty_print( printer ) printer.text( to_s ) end |
#to_s ⇒ Object
124 125 126 127 128 129 |
# File 'lib/sportdb/parser/racc_tree.rb', line 124 def to_s buf = String.new buf << "#{self.name}" buf << " #{self.minute.to_s}" if self.minute buf end |