class

Bundler::Thor::CoreExt::HashWithIndifferentAccess

ruby latest stable - Superclass: Hash

Class not available on this version

This class is only available on newer versions. The first available version (v2_6_3) is shown here.

A hash with indifferent access and magic predicates.

hash = Bundler::Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true

hash[:foo]  #=> 'bar'
hash['foo'] #=> 'bar'
hash.foo?   #=> true

Files

  • lib/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb