Class: RaccMatchParser::Minute
- Inherits:
-
Struct
- Object
- Struct
- RaccMatchParser::Minute
- Defined in:
- lib/sportdb/parser.rb
Instance Attribute Summary collapse
-
#m ⇒ Object
Returns the value of attribute m.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#og ⇒ Object
Returns the value of attribute og.
-
#pen ⇒ Object
Returns the value of attribute pen.
Instance Method Summary collapse
Instance Attribute Details
#m ⇒ Object
Returns the value of attribute m
230 231 232 |
# File 'lib/sportdb/parser.rb', line 230 def m @m end |
#offset ⇒ Object
Returns the value of attribute offset
230 231 232 |
# File 'lib/sportdb/parser.rb', line 230 def offset @offset end |
#og ⇒ Object
Returns the value of attribute og
230 231 232 |
# File 'lib/sportdb/parser.rb', line 230 def og @og end |
#pen ⇒ Object
Returns the value of attribute pen
230 231 232 |
# File 'lib/sportdb/parser.rb', line 230 def pen @pen end |
Instance Method Details
#pretty_print(printer) ⇒ Object
241 242 243 |
# File 'lib/sportdb/parser.rb', line 241 def pretty_print( printer ) printer.text( to_s ) end |
#to_s ⇒ Object
231 232 233 234 235 236 237 238 239 |
# File 'lib/sportdb/parser.rb', line 231 def to_s buf = String.new buf << "#{self.m}" buf << "+#{self.offset}" if self.offset buf << "'" buf << "(og)" if self.og buf << "(pen)" if self.pen buf end |