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: 107,397 of 189,654
Downloads: 7,113

Daily

Ranking: 94,537 of 189,628
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,194,011,454bundler
71,279,561,535activesupport
91,238,481,866rake
29951,193,561rspec
74578,202,325pry
1,32232,344,145pry-nav

Owners

#GravatarHandle
1iconConvincible