Class: RaccMatchParser::MatchLineWalkover

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#noteObject

Returns the value of attribute note

Returns:

  • (Object)

    the current value of note



251
252
253
# File 'lib/sportdb/parser/racc_tree.rb', line 251

def note
  @note
end

#team1Object

Returns the value of attribute team1

Returns:

  • (Object)

    the current value of team1



251
252
253
# File 'lib/sportdb/parser/racc_tree.rb', line 251

def team1
  @team1
end

#team2Object

Returns the value of attribute team2

Returns:

  • (Object)

    the current value of team2



251
252
253
# File 'lib/sportdb/parser/racc_tree.rb', line 251

def team2
  @team2
end

Instance Method Details

#pretty_print(printer) ⇒ Object



252
253
254
255
256
257
# File 'lib/sportdb/parser/racc_tree.rb', line 252

def pretty_print( printer )
  printer.text( "<MatchLineWalkover " )
  printer.text( "#{self.team1} w/o #{self.team2}")
  printer.text( " note=#{self.note.pretty_inspect}" )  if self.note
  printer.text( ">" )
end