Sha256: 1d032a4b909e7d1a105227273fd06dfc107bdfad7dbdafd80e12d72f9f64457b

Contents?: true

Size: 792 Bytes

Versions: 9

Compression:

Stored size: 792 Bytes

Contents

module Hyperstack
  module Legacy
    module Store
      class InvalidOptionError < StandardError; end
      class InvalidOperationError < StandardError; end
      class << self
        def included(base)
          base.include(Hyperstack::Internal::Store::InstanceMethods)
          base.extend(Hyperstack::Internal::Store::ClassMethods)
          base.extend(Hyperstack::Internal::Store::DispatchReceiver)

          base.singleton_class.define_singleton_method(:__state_wrapper) do
            @__state_wrapper ||= Class.new(Hyperstack::Internal::Store::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

9 entries across 9 versions & 1 rubygems

Version Path
hyper-store-1.0.alpha1.8 lib/hyperstack/legacy/store.rb
hyper-store-1.0.alpha1.7 lib/hyperstack/legacy/store.rb
hyper-store-1.0.alpha1.6 lib/hyperstack/legacy/store.rb
hyper-store-1.0.alpha1.5 lib/hyperstack/legacy/store.rb
hyper-store-1.0.alpha1.4 lib/hyperstack/legacy/store.rb
hyper-store-1.0.alpha1.3 lib/hyperstack/legacy/store.rb
hyper-store-1.0.alpha1.2 lib/hyperstack/legacy/store.rb
hyper-store-1.0.alpha1.1 lib/hyperstack/legacy/store.rb
hyper-store-1.0.alpha1 lib/hyperstack/legacy/store.rb