Class: RaccMatchParser::Lineup
- Inherits:
-
Struct
- Object
- Struct
- RaccMatchParser::Lineup
- Defined in:
- lib/sportdb/parser/racc_tree.rb
Instance Attribute Summary collapse
-
#card ⇒ Object
Returns the value of attribute card.
-
#name ⇒ Object
Returns the value of attribute name.
-
#sub ⇒ Object
Returns the value of attribute sub.
Instance Method Summary collapse
Instance Attribute Details
#card ⇒ Object
Returns the value of attribute card
17 18 19 |
# File 'lib/sportdb/parser/racc_tree.rb', line 17 def card @card end |
#name ⇒ Object
Returns the value of attribute name
17 18 19 |
# File 'lib/sportdb/parser/racc_tree.rb', line 17 def name @name end |
#sub ⇒ Object
Returns the value of attribute sub
17 18 19 |
# File 'lib/sportdb/parser/racc_tree.rb', line 17 def sub @sub end |
Instance Method Details
#pretty_print(printer) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/sportdb/parser/racc_tree.rb', line 18 def pretty_print( printer ) buf = String.new buf << self.name buf << " card=" + self.card.pretty_inspect if card buf << " sub=" + self.sub.pretty_inspect if sub printer.text( buf ) end |