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



284
285
286
# File 'lib/sportdb/parser/racc_tree.rb', line 284

def note
  @note
end

#team1Object

Returns the value of attribute team1

Returns:

  • (Object)

    the current value of team1



284
285
286
# File 'lib/sportdb/parser/racc_tree.rb', line 284

def team1
  @team1
end

#team2Object

Returns the value of attribute team2

Returns:

  • (Object)

    the current value of team2



284
285
286
# File 'lib/sportdb/parser/racc_tree.rb', line 284

def team2
  @team2
end

Instance Method Details

#pretty_print(printer) ⇒ Object



285
286
287
288
289
290
# File 'lib/sportdb/parser/racc_tree.rb', line 285

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