Class: RaccMatchParser::GroupDef

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



54
55
56
# File 'lib/sportdb/parser/racc_tree.rb', line 54

def name
  @name
end

#teamsObject

Returns the value of attribute teams

Returns:

  • (Object)

    the current value of teams



54
55
56
# File 'lib/sportdb/parser/racc_tree.rb', line 54

def teams
  @teams
end

Instance Method Details

#pretty_print(printer) ⇒ Object



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

def pretty_print( printer )
  printer.text( "<GroupDef " )
  printer.text( self.name )
  printer.text( " teams=" + self.teams.pretty_inspect )
  printer.text( ">" )
end