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
164 165 166 |
# File 'lib/sportdb/parser.rb', line 164 def card @card end |
#name ⇒ Object
Returns the value of attribute name
164 165 166 |
# File 'lib/sportdb/parser.rb', line 164 def name @name end |
#sub ⇒ Object
Returns the value of attribute sub
164 165 166 |
# File 'lib/sportdb/parser.rb', line 164 def sub @sub end |
Instance Method Details
#pretty_print(printer) ⇒ Object
165 166 167 168 169 170 171 |
# File 'lib/sportdb/parser.rb', line 165 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 |