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
158 159 160 |
# File 'lib/sportdb/parser/racc_tree.rb', line 158 def minutes @minutes end |
#player ⇒ Object
Returns the value of attribute player
158 159 160 |
# File 'lib/sportdb/parser/racc_tree.rb', line 158 def player @player end |
Instance Method Details
#pretty_print(printer) ⇒ Object
167 168 169 |
# File 'lib/sportdb/parser/racc_tree.rb', line 167 def pretty_print( printer ) printer.text( to_s ) end |
#to_s ⇒ Object
159 160 161 162 163 164 165 |
# File 'lib/sportdb/parser/racc_tree.rb', line 159 def to_s buf = String.new buf << "#{self.player}" buf << " " buf << minutes.map { |min| min.to_s }.join(' ') buf end |