Sha256: 3c6f819ae9cd316074debbf0a41c3ce67f824e43396525d56699d12bf33dfee8

Contents?: true

Size: 613 Bytes

Versions: 2

Compression:

Stored size: 613 Bytes

Contents

require 'active_support/core_ext/hash/indifferent_access'
require 'active_support/hash_with_indifferent_access'
require 'active_support/dependencies/autoload'

module MemoryModel
  class Collection
    extend ActiveSupport::Autoload

    autoload :Index
    autoload :MarshaledRecord
    autoload :LoaderDelegate
    autoload :Initializers
    autoload :Finders
    autoload :Operations

    attr_reader :primary_key

    include Finders
    include Initializers
    include Operations

    delegate *(LoaderDelegate.public_instance_methods - self.instance_methods), :size, :length, :inspect, to: :all

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
memory_model-1.0.0 lib/memory_model/collection.rb
memory_model-0.1.0 lib/memory_model/collection.rb