Sha256: fe78f216928104dc088b3d1da1977d8b4c9eb7c1584f23ccd0e0c82478affd39
Contents?: true
Size: 746 Bytes
Versions: 1
Compression:
Stored size: 746 Bytes
Contents
# frozen_string_literal: true require "operator_recordable/version" require "operator_recordable/configuration" 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[operator_store_key] end def self.operator=(operator) config.store[operator_store_key] = operator end def self.included(class_or_module) class_or_module.extend Recorder.new(config) end private_class_method :included def self.operator_store_key :operator_recordable_operator end private_class_method :operator_store_key end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
operator_recordable-0.2.0 | lib/operator_recordable.rb |