Sha256: 08768a4f5aae7b60d0bed41f4bcf3b57b532c4c415fdd9c125697909defa2210

Contents?: true

Size: 272 Bytes

Versions: 28

Compression:

Stored size: 272 Bytes

Contents

module Config
  module Sources
    class HashSource
      attr_accessor :hash

      def initialize(hash)
        @hash = hash
      end

      # returns hash that was passed in to initialize
      def load
        hash.is_a?(Hash) ? hash : {}
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
config-5.5.2 lib/config/sources/hash_source.rb
config-5.5.1 lib/config/sources/hash_source.rb
config-5.4.0 lib/config/sources/hash_source.rb
config-5.3.0 lib/config/sources/hash_source.rb
config-5.2.0 lib/config/sources/hash_source.rb
config-5.1.0 lib/config/sources/hash_source.rb
config-5.0.0 lib/config/sources/hash_source.rb
config-4.2.1 lib/config/sources/hash_source.rb
config-4.2.0 lib/config/sources/hash_source.rb
config-4.1.0 lib/config/sources/hash_source.rb
config-4.0.0 lib/config/sources/hash_source.rb
config-3.1.1 lib/config/sources/hash_source.rb
config-3.1.0 lib/config/sources/hash_source.rb
config-3.0.0 lib/config/sources/hash_source.rb
config-2.2.3 lib/config/sources/hash_source.rb
config-2.2.2 lib/config/sources/hash_source.rb
config-2.2.1 lib/config/sources/hash_source.rb
config-2.1.0 lib/config/sources/hash_source.rb
config-2.0.0 lib/config/sources/hash_source.rb
config-1.7.2 lib/config/sources/hash_source.rb