Class: RaccMatchParser::LineupLine

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#coachObject

Returns the value of attribute coach

Returns:

  • (Object)

    the current value of coach



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

def coach
  @coach
end

#lineupObject

Returns the value of attribute lineup

Returns:

  • (Object)

    the current value of lineup



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

def lineup
  @lineup
end

#teamObject

Returns the value of attribute team

Returns:

  • (Object)

    the current value of team



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

def team
  @team
end

Instance Method Details

#pretty_print(printer) ⇒ Object



68
69
70
71
72
73
74
# File 'lib/sportdb/parser/racc_tree.rb', line 68

def pretty_print( printer )
  printer.text( "<LineupLine " )
  printer.text( self.team )
  printer.text( " lineup=" + self.lineup.pretty_inspect )
  printer.text( " coach=" + self.coach )   if self.coach
  printer.text( ">" )
end