What is the difference between Ruby’s Hash and ActiveSupport’s HashWithIndifferentAccess?

PHOTO EMBED

Mon May 18 2020 19:18:47 GMT+0000 (Coordinated Universal Time)

Saved by @ayazahmadtarar

h = HashWithIndifferentAccess.new
h[:my_value] = 'foo'
h['my_value'] #=> will return "foo"
content_copyCOPY

https://www.toptal.com/ruby-on-rails/interview-questions