Class: RaccMatchParser::Lineup
- Inherits:
-
Struct
- Object
- Struct
- RaccMatchParser::Lineup
- Defined in:
- lib/sportdb/parser.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
158 159 160 |
# File 'lib/sportdb/parser.rb', line 158 def card @card end |
#name ⇒ Object
Returns the value of attribute name
158 159 160 |
# File 'lib/sportdb/parser.rb', line 158 def name @name end |
#sub ⇒ Object
Returns the value of attribute sub
158 159 160 |
# File 'lib/sportdb/parser.rb', line 158 def sub @sub end |
Instance Method Details
#pretty_print(printer) ⇒ Object
159 160 161 162 163 164 165 |
# File 'lib/sportdb/parser.rb', line 159 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 |