Class: Fbtxt::Parser::CardsLine

Inherits:
Struct
  • Object
show all
Defined in:
lib/fbtxt/parser/parse_tree-props.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



92
93
94
# File 'lib/fbtxt/parser/parse_tree-props.rb', line 92

def bookings
  @bookings
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



92
93
94
# File 'lib/fbtxt/parser/parse_tree-props.rb', line 92

def type
  @type
end

Instance Method Details

#pretty_print(q) ⇒ Object



95
96
97
98
99
100
101
102
103
# File 'lib/fbtxt/parser/parse_tree-props.rb', line 95

def pretty_print( q )
  q.group( 4, '<CardsLine ', '>') do
    q.text( type )
    ## note - either (all-in-one or undetermined) bookings: []
    ##                               or bookings1/2 aka:    [[],[]]
    q.text( " bookings=" )
    q.pp( bookings )
  end
end