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
195 196 197 |
# File 'lib/sportdb/parser/racc_tree.rb', line 195 def minute @minute end |
#player ⇒ Object
Returns the value of attribute player
195 196 197 |
# File 'lib/sportdb/parser/racc_tree.rb', line 195 def player @player end |
#score ⇒ Object
Returns the value of attribute score
195 196 197 |
# File 'lib/sportdb/parser/racc_tree.rb', line 195 def score @score end |
Instance Method Details
#pretty_print(printer) ⇒ Object
204 205 206 |
# File 'lib/sportdb/parser/racc_tree.rb', line 204 def pretty_print( printer ) printer.text( to_s ) end |
#to_s ⇒ Object
196 197 198 199 200 201 202 |
# File 'lib/sportdb/parser/racc_tree.rb', line 196 def to_s buf = String.new buf << "#{score} " buf << "#{self.player}" buf << " #{self.minute}" if self.minute buf end |