Class: RaccMatchParser::GoalType
- Inherits:
-
Struct
- Object
- Struct
- RaccMatchParser::GoalType
- Defined in:
- lib/sportdb/parser/racc_tree.rb
Instance Attribute Summary collapse
-
#freekick ⇒ Object
Returns the value of attribute freekick.
-
#header ⇒ Object
Returns the value of attribute header.
-
#og ⇒ Object
Returns the value of attribute og.
-
#pen ⇒ Object
Returns the value of attribute pen.
Instance Method Summary collapse
Instance Attribute Details
#freekick ⇒ Object
Returns the value of attribute freekick
493 494 495 |
# File 'lib/sportdb/parser/racc_tree.rb', line 493 def freekick @freekick end |
#header ⇒ Object
Returns the value of attribute header
493 494 495 |
# File 'lib/sportdb/parser/racc_tree.rb', line 493 def header @header end |
#og ⇒ Object
Returns the value of attribute og
493 494 495 |
# File 'lib/sportdb/parser/racc_tree.rb', line 493 def og @og end |
#pen ⇒ Object
Returns the value of attribute pen
493 494 495 |
# File 'lib/sportdb/parser/racc_tree.rb', line 493 def pen @pen end |
Instance Method Details
#pretty_print(printer) ⇒ Object
503 504 505 |
# File 'lib/sportdb/parser/racc_tree.rb', line 503 def pretty_print( printer ) printer.text( to_s ) end |
#to_s ⇒ Object
494 495 496 497 498 499 500 501 |
# File 'lib/sportdb/parser/racc_tree.rb', line 494 def to_s buf = String.new buf << "(og)" if self.og buf << "(pen)" if self.pen buf << "(f)" if self.freekick buf << "(h)" if self.header buf end |