You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling compact returns a Hash instead of indifferent_access
irb(main):001:0> h=Fusu::HashWithIndifferentAccess.new({hello: 'hello'})=>{"hello"=>"hello"}irb(main):002:0> h_c=h.compact=>{"hello"=>"hello"}irb(main):003:0> h_c.class=>Hashirb(main):004:0> h_c.fetch(:hello)Traceback(mostrecentcalllast):
3: frombin/console:14:in`<main>' 2: from (irb):4 1: from (irb):4:in `fetch'
KeyError(key not found: :hello)
The text was updated successfully, but these errors were encountered:
arturictus
changed the title
With indifferent access (ruby 2.5.1)
With indifferent access returns hash on transformation methods (ruby 2.5.1)
Sep 4, 2018
arturictus
changed the title
With indifferent access returns hash on transformation methods (ruby 2.5.1)
With indifferent access returns Hash on transformation methods (ruby 2.5.1)
Sep 4, 2018
When calling
compact
returns aHash
instead of indifferent_accessThe text was updated successfully, but these errors were encountered: