Sha256: dda98c56486b5aef9affde95e5c9ce4a0cfb98db7e1286aceaa288c380c03345
Contents?: true
Size: 647 Bytes
Versions: 1
Compression:
Stored size: 647 Bytes
Contents
# frozen_string_literal: true require "operator_recordable/version" require "operator_recordable/configuration" require "operator_recordable/store" require "operator_recordable/recorder" module OperatorRecordable def self.config self.config = {} unless instance_variable_defined? :@config @config end def self.config=(config) @config = Configuration.new(config) end def self.operator config.store[Store.operator_store_key] end def self.operator=(operator) config.store[Store.operator_store_key] = operator end def self.included(class_or_module) class_or_module.extend Recorder.new(config) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
operator_recordable-0.1.0 | lib/operator_recordable.rb |