Class: RaccMatchParser::CardsLine
- Inherits:
-
Struct
- Object
- Struct
- RaccMatchParser::CardsLine
- 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
-
#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
76 77 78 |
# File 'lib/sportdb/parser/racc_tree.rb', line 76 def bookings @bookings end |
#type ⇒ Object
Returns the value of attribute type
76 77 78 |
# File 'lib/sportdb/parser/racc_tree.rb', line 76 def type @type end |
Instance Method Details
#pretty_print(printer) ⇒ Object
77 78 79 80 81 82 |
# File 'lib/sportdb/parser/racc_tree.rb', line 77 def pretty_print( printer ) printer.text( "<CardsLine " ) printer.text( self.type ) printer.text( " bookings=" + self.bookings.pretty_inspect ) printer.text( ">" ) end |