Class: Degica::Collection
- Inherits:
-
Array
- Object
- Array
- Degica::Collection
- Includes:
- Actionable
- Defined in:
- lib/degica/collection.rb
Direct Known Subclasses
Instance Method Summary collapse
- #<<(item) ⇒ Object
- #actions ⇒ Object
-
#initialize(items = []) ⇒ Collection
constructor
A new instance of Collection.
Methods included from Actionable
Constructor Details
#initialize(items = []) ⇒ Collection
Returns a new instance of Collection.
10 11 12 13 14 15 |
# File 'lib/degica/collection.rb', line 10 def initialize(items = []) items.each do |item| item.collection = self end super(items) end |