Class: RaccMatchParser::MatchLineBye

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



275
276
277
# File 'lib/sportdb/parser/racc_tree.rb', line 275

def note
  @note
end

#teamObject

Returns the value of attribute team

Returns:

  • (Object)

    the current value of team



275
276
277
# File 'lib/sportdb/parser/racc_tree.rb', line 275

def team
  @team
end

Instance Method Details

#pretty_print(printer) ⇒ Object



276
277
278
279
280
281
# File 'lib/sportdb/parser/racc_tree.rb', line 276

def pretty_print( printer )
  printer.text( "<MatchLineBye " )
  printer.text( "#{self.team} bye")
  printer.text( " note=#{self.note.pretty_inspect}" )  if self.note
  printer.text( ">" )
end