Class: RaccMatchParser::Lineup
- Inherits:
-
Struct
- Object
- Struct
- RaccMatchParser::Lineup
- Defined in:
- lib/sportdb/parser/racc_tree.rb
Instance Attribute Summary collapse
-
#captain ⇒ Object
Returns the value of attribute captain.
-
#cards ⇒ Object
Returns the value of attribute cards.
-
#name ⇒ Object
Returns the value of attribute name.
-
#sub ⇒ Object
Returns the value of attribute sub.
Instance Method Summary collapse
Instance Attribute Details
#captain ⇒ Object
Returns the value of attribute captain
111 112 113 |
# File 'lib/sportdb/parser/racc_tree.rb', line 111 def captain @captain end |
#cards ⇒ Object
Returns the value of attribute cards
111 112 113 |
# File 'lib/sportdb/parser/racc_tree.rb', line 111 def cards @cards end |
#name ⇒ Object
Returns the value of attribute name
111 112 113 |
# File 'lib/sportdb/parser/racc_tree.rb', line 111 def name @name end |
#sub ⇒ Object
Returns the value of attribute sub
111 112 113 |
# File 'lib/sportdb/parser/racc_tree.rb', line 111 def sub @sub end |
Instance Method Details
#pretty_print(printer) ⇒ Object
112 113 114 115 116 117 118 119 |
# File 'lib/sportdb/parser/racc_tree.rb', line 112 def pretty_print( printer ) buf = String.new buf << self.name buf << " [c]" if captain buf << " cards=" + self.cards.pretty_inspect if cards buf << " sub=" + self.sub.pretty_inspect if sub printer.text( buf ) end |