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
526 527 528 |
# File 'lib/sportdb/parser/racc_tree.rb', line 526 def freekick @freekick end |
#header ⇒ Object
Returns the value of attribute header
526 527 528 |
# File 'lib/sportdb/parser/racc_tree.rb', line 526 def header @header end |
#og ⇒ Object
Returns the value of attribute og
526 527 528 |
# File 'lib/sportdb/parser/racc_tree.rb', line 526 def og @og end |
#pen ⇒ Object
Returns the value of attribute pen
526 527 528 |
# File 'lib/sportdb/parser/racc_tree.rb', line 526 def pen @pen end |
Instance Method Details
#pretty_print(printer) ⇒ Object
536 537 538 |
# File 'lib/sportdb/parser/racc_tree.rb', line 536 def pretty_print( printer ) printer.text( to_s ) end |
#to_s ⇒ Object
527 528 529 530 531 532 533 534 |
# File 'lib/sportdb/parser/racc_tree.rb', line 527 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 |