Class: RaccMatchParser::Minute
- Inherits:
-
Struct
- Object
- Struct
- RaccMatchParser::Minute
- Defined in:
- lib/sportdb/parser/racc_tree.rb
Overview
fix - move :og, :pen to Goal if possible - why? why not?
or change to GoalMinute ???
Instance Attribute Summary collapse
-
#m ⇒ Object
Returns the value of attribute m.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#og ⇒ Object
Returns the value of attribute og.
-
#pen ⇒ Object
Returns the value of attribute pen.
Instance Method Summary collapse
Instance Attribute Details
#m ⇒ Object
Returns the value of attribute m
246 247 248 |
# File 'lib/sportdb/parser/racc_tree.rb', line 246 def m @m end |
#offset ⇒ Object
Returns the value of attribute offset
246 247 248 |
# File 'lib/sportdb/parser/racc_tree.rb', line 246 def offset @offset end |
#og ⇒ Object
Returns the value of attribute og
246 247 248 |
# File 'lib/sportdb/parser/racc_tree.rb', line 246 def og @og end |
#pen ⇒ Object
Returns the value of attribute pen
246 247 248 |
# File 'lib/sportdb/parser/racc_tree.rb', line 246 def pen @pen end |
Instance Method Details
#pretty_print(printer) ⇒ Object
257 258 259 |
# File 'lib/sportdb/parser/racc_tree.rb', line 257 def pretty_print( printer ) printer.text( to_s ) end |
#to_s ⇒ Object
247 248 249 250 251 252 253 254 255 |
# File 'lib/sportdb/parser/racc_tree.rb', line 247 def to_s buf = String.new buf << "#{self.m}" buf << "+#{self.offset}" if self.offset buf << "'" buf << "(og)" if self.og buf << "(pen)" if self.pen buf end |