Class: RaccMatchParser::Sub
- Inherits:
-
Struct
- Object
- Struct
- RaccMatchParser::Sub
- Defined in:
- lib/sportdb/parser/racc_tree.rb
Instance Attribute Summary collapse
-
#minute ⇒ Object
Returns the value of attribute minute.
-
#sub ⇒ Object
Returns the value of attribute sub.
Instance Method Summary collapse
Instance Attribute Details
#minute ⇒ Object
Returns the value of attribute minute
77 78 79 |
# File 'lib/sportdb/parser/racc_tree.rb', line 77 def minute @minute end |
#sub ⇒ Object
Returns the value of attribute sub
77 78 79 |
# File 'lib/sportdb/parser/racc_tree.rb', line 77 def sub @sub end |
Instance Method Details
#pretty_print(printer) ⇒ Object
78 79 80 81 82 83 84 |
# File 'lib/sportdb/parser/racc_tree.rb', line 78 def pretty_print( printer ) buf = String.new buf << "(#{self.sub.pretty_inspect}" buf << " #{self.minute.to_s}" if self.minute buf << ")" printer.text( buf ) end |