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
227 228 229 |
# File 'lib/sportdb/parser/racc_tree.rb', line 227 def minutes @minutes end |
#player ⇒ Object
Returns the value of attribute player
227 228 229 |
# File 'lib/sportdb/parser/racc_tree.rb', line 227 def player @player end |
Instance Method Details
#pretty_print(printer) ⇒ Object
236 237 238 |
# File 'lib/sportdb/parser/racc_tree.rb', line 236 def pretty_print( printer ) printer.text( to_s ) end |
#to_s ⇒ Object
228 229 230 231 232 233 234 |
# File 'lib/sportdb/parser/racc_tree.rb', line 228 def to_s buf = String.new buf << "#{self.player}" buf << " " buf << minutes.map { |min| min.to_s }.join(' ') buf end |