Class: RaccMatchParser::Sub

Inherits:
Struct
  • Object
show all
Defined in:
lib/sportdb/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#minuteObject

Returns the value of attribute minute

Returns:

  • (Object)

    the current value of minute



189
190
191
# File 'lib/sportdb/parser.rb', line 189

def minute
  @minute
end

#subObject

Returns the value of attribute sub

Returns:

  • (Object)

    the current value of sub



189
190
191
# File 'lib/sportdb/parser.rb', line 189

def sub
  @sub
end

Instance Method Details

#pretty_print(printer) ⇒ Object



190
191
192
193
194
195
196
# File 'lib/sportdb/parser.rb', line 190

def pretty_print( printer )
  buf = String.new 
  buf << "(#{self.minute.to_s} " 
  buf << self.sub.pretty_inspect  
  buf << ")"
  printer.text( buf ) 
end