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
42 43 44 |
# File 'lib/sportdb/parser/racc_tree.rb', line 42 def minute @minute end |
#sub ⇒ Object
Returns the value of attribute sub
42 43 44 |
# File 'lib/sportdb/parser/racc_tree.rb', line 42 def sub @sub end |
Instance Method Details
#pretty_print(printer) ⇒ Object
43 44 45 46 47 48 49 |
# File 'lib/sportdb/parser/racc_tree.rb', line 43 def pretty_print( printer ) buf = String.new buf << "(#{self.minute.to_s} " buf << self.sub.pretty_inspect buf << ")" printer.text( buf ) end |