Module: Collectible::Collection::Core

Extended by:
ActiveSupport::Concern
Included in:
Collectible::CollectionBase
Defined in:
lib/collectible/collection/core.rb

Instance Method Summary collapse

Instance Method Details

#hashObject



19
20
21
# File 'lib/collectible/collection/core.rb', line 19

def hash
  { class_name: class_name, items: items }.hash
end

#initialize(*items) ⇒ Object



15
16
17
# File 'lib/collectible/collection/core.rb', line 15

def initialize(*items)
  @items = items.flatten
end