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
236 237 238 |
# File 'lib/sportdb/parser/racc_tree.rb', line 236 def minutes @minutes end |
#player ⇒ Object
Returns the value of attribute player
236 237 238 |
# File 'lib/sportdb/parser/racc_tree.rb', line 236 def player @player end |
Instance Method Details
#pretty_print(printer) ⇒ Object
245 246 247 |
# File 'lib/sportdb/parser/racc_tree.rb', line 245 def pretty_print( printer ) printer.text( to_s ) end |
#to_s ⇒ Object
237 238 239 240 241 242 243 |
# File 'lib/sportdb/parser/racc_tree.rb', line 237 def to_s buf = String.new buf << "#{self.player}" buf << " " buf << minutes.map { |min| min.to_s }.join(' ') buf end |