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-6.2.2 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-6.2.1 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-6.2.0 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-6.1.1 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-6.1.0 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-6.0.1 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-6.0.0 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-5.6.5 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-5.6.4 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-5.6.3 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-5.6.2 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-5.6.1 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-5.6.0 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-5.5.0 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-5.4.0 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-5.3.0 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-5.2.0 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-5.1.0 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-5.0.0 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb
berkshelf-4.3.5 lib/berkshelf/thor_ext/hash_with_indifferent_access.rb