Class: RaccMatchParser::Goal
- Inherits:
-
Struct
- Object
- Struct
- RaccMatchParser::Goal
- Defined in:
- lib/sportdb/parser/racc_tree.rb
Instance Attribute Summary collapse
-
#minutes ⇒ Object
Returns the value of attribute minutes.
-
#player ⇒ Object
Returns the value of attribute player.
Instance Method Summary collapse
Instance Attribute Details
#minutes ⇒ Object
Returns the value of attribute minutes
194 195 196 |
# File 'lib/sportdb/parser/racc_tree.rb', line 194 def minutes @minutes end |
#player ⇒ Object
Returns the value of attribute player
194 195 196 |
# File 'lib/sportdb/parser/racc_tree.rb', line 194 def player @player end |
Instance Method Details
#pretty_print(printer) ⇒ Object
203 204 205 |
# File 'lib/sportdb/parser/racc_tree.rb', line 203 def pretty_print( printer ) printer.text( to_s ) end |
#to_s ⇒ Object
195 196 197 198 199 200 201 |
# File 'lib/sportdb/parser/racc_tree.rb', line 195 def to_s buf = String.new buf << "#{self.player}" buf << " " buf << minutes.map { |min| min.to_s }.join(' ') buf end |