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



183
184
185
# File 'lib/sportdb/parser.rb', line 183

def minute
  @minute
end

#subObject

Returns the value of attribute sub

Returns:

  • (Object)

    the current value of sub



183
184
185
# File 'lib/sportdb/parser.rb', line 183

def sub
  @sub
end

Instance Method Details

#pretty_print(printer) ⇒ Object



184
185
186
187
188
189
190
# File 'lib/sportdb/parser.rb', line 184

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