Sha256: 0cea4ebfa6d1d5170ddc810e9c9017deda4d7b767776f1732235a319b34756fa

Contents?: true

Size: 422 Bytes

Versions: 3

Compression:

Stored size: 422 Bytes

Contents

# frozen_string_literal: true

module OperatorRecordable
  module Store
    def self.register(name, klass)
      @stores ||= {}
      @stores[name] = klass
    end

    def self.fetch(name)
      @stores.fetch(name)
    end
  end
end

require "operator_recordable/store/thread_store"
require "operator_recordable/store/request_store" if defined? ::RequestStore
require "operator_recordable/store/current_attributes_store"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
operator_recordable-1.4.0 lib/operator_recordable/store.rb
operator_recordable-1.3.1 lib/operator_recordable/store.rb
operator_recordable-1.3.0 lib/operator_recordable/store.rb