class Degica::Collection

Public Class Methods

new(items = []) click to toggle source
Calls superclass method
# File lib/degica/collection.rb, line 10
def initialize(items = [])
  items.each do |item|
    item.collection = self
  end
  super(items)
end

Public Instance Methods

<<(item) click to toggle source
# File lib/degica/collection.rb, line 17
def <<(item)
  item.collection = self
  push(item)
end
actions() click to toggle source
# File lib/degica/collection.rb, line 22
def actions
  []
end