Sha256: 9ccf8bb67cb288f8cf87f0ed5f0dd755656a5a0b7f1a0c31e5cdf42f252dcf14

Contents?: true

Size: 393 Bytes

Versions: 10

Compression:

Stored size: 393 Bytes

Contents

module Credentials #:nodoc:
  module Extensions #:nodoc:
    module Configuration #:nodoc:
      def rw_config(key, value, default_value = nil, read_value = nil)
        if value == read_value
          inheritable_attributes.include?(key) ? read_inheritable_attribute(key) : default_value
        else
          write_inheritable_attribute(key, value)
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
credentials-2.4.3 lib/credentials/extensions/configuration.rb
credentials-2.4.2 lib/credentials/extensions/configuration.rb
credentials-2.4.1 lib/credentials/extensions/configuration.rb
credentials-2.4.0 lib/credentials/extensions/configuration.rb
credentials-2.3.1 lib/credentials/extensions/configuration.rb
credentials-2.3.0 lib/credentials/extensions/configuration.rb
credentials-2.2.3 lib/credentials/extensions/configuration.rb
credentials-2.2.2 lib/credentials/extensions/configuration.rb
credentials-2.2.1 lib/credentials/extensions/configuration.rb
credentials-2.2.0 lib/credentials/extensions/configuration.rb