Class: RaccMatchParser::Minute
- Inherits:
-
Struct
- Object
- Struct
- RaccMatchParser::Minute
- Defined in:
- lib/sportdb/parser/racc_tree.rb
Instance Attribute Summary collapse
-
#m ⇒ Object
Returns the value of attribute m.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#secs ⇒ Object
Returns the value of attribute secs.
Instance Method Summary collapse
Instance Attribute Details
#m ⇒ Object
Returns the value of attribute m
509 510 511 |
# File 'lib/sportdb/parser/racc_tree.rb', line 509 def m @m end |
#offset ⇒ Object
Returns the value of attribute offset
509 510 511 |
# File 'lib/sportdb/parser/racc_tree.rb', line 509 def offset @offset end |
#secs ⇒ Object
Returns the value of attribute secs
509 510 511 |
# File 'lib/sportdb/parser/racc_tree.rb', line 509 def secs @secs end |
Instance Method Details
#pretty_print(printer) ⇒ Object
519 520 521 |
# File 'lib/sportdb/parser/racc_tree.rb', line 519 def pretty_print( printer ) printer.text( to_s ) end |
#to_s ⇒ Object
510 511 512 513 514 515 516 517 |
# File 'lib/sportdb/parser/racc_tree.rb', line 510 def to_s buf = String.new buf << "#{self.m}" buf << "'" buf << "+#{self.offset}" if self.offset buf << "/#{self.secs} secs" if self.secs buf end |