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



17
18
19
# File 'lib/sportdb/parser/racc_tree.rb', line 17

def card
  @card
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



17
18
19
# File 'lib/sportdb/parser/racc_tree.rb', line 17

def name
  @name
end

#subObject

Returns the value of attribute sub

Returns:

  • (Object)

    the current value of sub



17
18
19
# File 'lib/sportdb/parser/racc_tree.rb', line 17

def sub
  @sub
end

Instance Method Details

#pretty_print(printer) ⇒ Object



18
19
20
21
22
23
24
# File 'lib/sportdb/parser/racc_tree.rb', line 18

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