Class: RaccMatchParser::Booking

Inherits:
Struct
  • Object
show all
Defined in:
lib/sportdb/parser/racc_tree.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



59
60
61
# File 'lib/sportdb/parser/racc_tree.rb', line 59

def minute
  @minute
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



59
60
61
# File 'lib/sportdb/parser/racc_tree.rb', line 59

def name
  @name
end

Instance Method Details

#pretty_print(printer) ⇒ Object



67
68
69
# File 'lib/sportdb/parser/racc_tree.rb', line 67

def pretty_print( printer )
  printer.text( to_s )
end

#to_sObject



60
61
62
63
64
65
# File 'lib/sportdb/parser/racc_tree.rb', line 60

def to_s
  buf = String.new
  buf << "#{self.name}"
  buf << " #{self.minute.to_s}"   if self.minute
  buf
end