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-1.7.1 lib/config/sources/hash_source.rb
ef-config-1.4.1 lib/config/sources/hash_source.rb
config-1.7.0 lib/config/sources/hash_source.rb
config-1.6.1 lib/config/sources/hash_source.rb
config-1.6.0 lib/config/sources/hash_source.rb
config-1.5.1 lib/config/sources/hash_source.rb
config-1.5.0 lib/config/sources/hash_source.rb
config-1.4.0 lib/config/sources/hash_source.rb