Class: Yello::List

Inherits:
Base
  • Object
show all
Defined in:
lib/yello/list.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#name

Instance Method Summary collapse

Methods inherited from Base

#attributes

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

#cardsObject (readonly)

Returns the value of attribute cards.



7
8
9
# File 'lib/yello/list.rb', line 7

def cards
  @cards
end