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
127 128 129 |
# File 'lib/sportdb/parser/racc_tree.rb', line 127 def minutes @minutes end |
#player ⇒ Object
Returns the value of attribute player
127 128 129 |
# File 'lib/sportdb/parser/racc_tree.rb', line 127 def player @player end |
Instance Method Details
#pretty_print(printer) ⇒ Object
136 137 138 |
# File 'lib/sportdb/parser/racc_tree.rb', line 136 def pretty_print( printer ) printer.text( to_s ) end |
#to_s ⇒ Object
128 129 130 131 132 133 134 |
# File 'lib/sportdb/parser/racc_tree.rb', line 128 def to_s buf = String.new buf << "#{self.player}" buf << " " buf << minutes.map { |min| min.to_s }.join(' ') buf end |