Class: RaccMatchParser::Lineup

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cardObject

Returns the value of attribute card

Returns:

  • (Object)

    the current value of card



52
53
54
# File 'lib/sportdb/parser/racc_tree.rb', line 52

def card
  @card
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



52
53
54
# File 'lib/sportdb/parser/racc_tree.rb', line 52

def name
  @name
end

#subObject

Returns the value of attribute sub

Returns:

  • (Object)

    the current value of sub



52
53
54
# File 'lib/sportdb/parser/racc_tree.rb', line 52

def sub
  @sub
end

Instance Method Details

#pretty_print(printer) ⇒ Object



53
54
55
56
57
58
59
# File 'lib/sportdb/parser/racc_tree.rb', line 53

def pretty_print( printer )
  buf = String.new
  buf <<  self.name 
  buf << " card=" + self.card.pretty_inspect    if card
  buf << " sub=" + self.sub.pretty_inspect      if sub
  printer.text( buf ) 
end