Categories: None [Edit]

key_dial

https://rubygems.org/gems/key_dial
https://github.com/ConvincibleMedia/ruby-gem-key_dial
Avoid all errors when accessing (deeply nested) Hash, Array or Struct keys. Safer than dig(), as will quietly return nil (or your default) if the keys requested are invalid for any reason at all. Bonus: you don't even need to fiddle with existing code. If you have already written something to access a deep key (e.g. hash[:a][:b][:c]), just surround this with '.dial' and '.call'.

Total

Ranking: 108,624 of 197,051
Downloads: 7,528

Daily

Ranking: 67,605 of 197,010
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,792,501,566bundler
71,442,365,801activesupport
81,427,168,861rake
291,024,975,886rspec
72637,210,851pry
1,33035,505,629pry-nav

Owners

#GravatarHandle
1iconConvincible