Sha256: 8ed3b3e3833a354ddc601bab4b2c8430b2afac9bb312eb2fc604d5082379540e

Contents?: true

Size: 614 Bytes

Versions: 12

Compression:

Stored size: 614 Bytes

Contents

module Hyperloop
  class Store
    module Mixin
      class << self
        def included(base)
          base.include(HyperStore::InstanceMethods)
          base.extend(HyperStore::ClassMethods)
          base.extend(HyperStore::DispatchReceiver)

          base.singleton_class.define_singleton_method(:__state_wrapper) do
            @__state_wrapper ||= Class.new(HyperStore::StateWrapper)
          end

          base.singleton_class.define_singleton_method(:state) do |*args, &block|
            __state_wrapper.define_state_methods(base, *args, &block)
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
hyper-store-0.99.6 lib/hyperloop/store/mixin.rb
hyper-store-0.99.5 lib/hyperloop/store/mixin.rb
hyper-store-0.99.4 lib/hyperloop/store/mixin.rb
hyper-store-0.99.3 lib/hyperloop/store/mixin.rb
hyper-store-0.99.2 lib/hyperloop/store/mixin.rb
hyper-store-0.99.1 lib/hyperloop/store/mixin.rb
hyper-store-0.99.0 lib/hyperloop/store/mixin.rb
hyper-store-1.0.0.lap28 lib/hyperloop/store/mixin.rb
hyper-store-0.2.3 lib/hyperloop/store/mixin.rb
hyper-store-0.2.2 lib/hyperloop/store/mixin.rb
hyper-store-0.2.1 lib/hyperloop/store/mixin.rb
hyper-store-0.2.0 lib/hyperloop/store/mixin.rb