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
92 93 94 |
# File 'lib/fbtxt/parser/parse_tree-props.rb', line 92 def bookings @bookings end |
#type ⇒ Object
Returns the value of attribute 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 |