Class: Fbtxt::Parser::CardsLine
- 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
-
#bookings ⇒ Object
Returns the value of attribute bookings.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#bookings ⇒ Object
Returns the value of attribute bookings
116 117 118 |
# File 'lib/fbtxt/parser/parse_tree-props.rb', line 116 def bookings @bookings end |
#type ⇒ Object
Returns the value of attribute type
116 117 118 |
# File 'lib/fbtxt/parser/parse_tree-props.rb', line 116 def type @type end |
Instance Method Details
#pretty_print(q) ⇒ Object
119 120 121 122 123 124 125 126 127 |
# File 'lib/fbtxt/parser/parse_tree-props.rb', line 119 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 |