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
202 203 204 |
# File 'lib/sportdb/parser/racc_tree.rb', line 202 def minute @minute end |
#player ⇒ Object
Returns the value of attribute player
202 203 204 |
# File 'lib/sportdb/parser/racc_tree.rb', line 202 def player @player end |
#score ⇒ Object
Returns the value of attribute score
202 203 204 |
# File 'lib/sportdb/parser/racc_tree.rb', line 202 def score @score end |
Instance Method Details
#pretty_print(printer) ⇒ Object
211 212 213 |
# File 'lib/sportdb/parser/racc_tree.rb', line 211 def pretty_print( printer ) printer.text( to_s ) end |
#to_s ⇒ Object
203 204 205 206 207 208 209 |
# File 'lib/sportdb/parser/racc_tree.rb', line 203 def to_s buf = String.new buf << "#{score} " buf << "#{self.player}" buf << " #{self.minute}" if self.minute buf end |