Sha256: 9f2df689c45cff12456f15e5fcd536203a8e53326a6af777a0d11eb2dc1b5679

Contents?: true

Size: 334 Bytes

Versions: 50

Compression:

Stored size: 334 Bytes

Contents

class Thor
  module CoreExt #:nodoc:
    class HashWithIndifferentAccess < ::Hash
      def has_key?(key)
        super(convert_key(key))
      end

      def fetch(key, default = nil)
        if default
          super(convert_key(key), default)
        else
          super(convert_key(key))
        end
      end
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
berkshelf-7.2.2 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-7.2.1 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-7.2.0 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-7.1.0 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-7.0.10 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-7.0.9 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-7.0.8 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-7.0.7 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-6.3.4 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-7.0.6 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-7.0.5 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-6.3.3 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-7.0.4 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-7.0.3 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-7.0.2 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-7.0.1 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-7.0.0 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-6.3.2 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-6.3.1 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-6.3.0 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb