Class: Yello::List
Instance Attribute Summary collapse
-
#cards ⇒ Object
readonly
Returns the value of attribute cards.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(name, cards) ⇒ List
constructor
A new instance of List.
Methods inherited from Base
Constructor Details
#initialize(name, cards) ⇒ List
Returns a new instance of List.
9 10 11 12 |
# File 'lib/yello/list.rb', line 9 def initialize(name, cards) super(name) @cards = cards end |
Instance Attribute Details
#cards ⇒ Object (readonly)
Returns the value of attribute cards.
7 8 9 |
# File 'lib/yello/list.rb', line 7 def cards @cards end |