class

Bundler::Thor::CoreExt::HashWithIndifferentAccess

v2_6_3 - Show latest stable - Superclass: Hash

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