Class: RaccMatchParser::CardsLine

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

Overview

find a better name for player (use bookings?) - note - red/yellow card for trainer possible

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bookingsObject

Returns the value of attribute bookings

Returns:

  • (Object)

    the current value of bookings



43
44
45
# File 'lib/sportdb/parser/racc_tree.rb', line 43

def bookings
  @bookings
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



43
44
45
# File 'lib/sportdb/parser/racc_tree.rb', line 43

def type
  @type
end

Instance Method Details

#pretty_print(printer) ⇒ Object



44
45
46
47
48
49
# File 'lib/sportdb/parser/racc_tree.rb', line 44

def pretty_print( printer )
  printer.text( "<CardsLine " )
  printer.text( self.type )
  printer.text( " bookings=" + self.bookings.pretty_inspect )
  printer.text( ">" )
end