Class: RaccMatchParser::GoalAlt
- Inherits:
-
Struct
- Object
- Struct
- RaccMatchParser::GoalAlt
- Defined in:
- lib/sportdb/parser/racc_tree.rb
Instance Attribute Summary collapse
-
#minute ⇒ Object
Returns the value of attribute minute.
-
#player ⇒ Object
Returns the value of attribute player.
-
#score ⇒ Object
Returns the value of attribute score.
Instance Method Summary collapse
Instance Attribute Details
#minute ⇒ Object
Returns the value of attribute minute
211 212 213 |
# File 'lib/sportdb/parser/racc_tree.rb', line 211 def minute @minute end |
#player ⇒ Object
Returns the value of attribute player
211 212 213 |
# File 'lib/sportdb/parser/racc_tree.rb', line 211 def player @player end |
#score ⇒ Object
Returns the value of attribute score
211 212 213 |
# File 'lib/sportdb/parser/racc_tree.rb', line 211 def score @score end |
Instance Method Details
#pretty_print(printer) ⇒ Object
220 221 222 |
# File 'lib/sportdb/parser/racc_tree.rb', line 220 def pretty_print( printer ) printer.text( to_s ) end |
#to_s ⇒ Object
212 213 214 215 216 217 218 |
# File 'lib/sportdb/parser/racc_tree.rb', line 212 def to_s buf = String.new buf << "#{score} " buf << "#{self.player}" buf << " #{self.minute}" if self.minute buf end |