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,651 of 192,156
Downloads: 7,248

Daily

Ranking: 135,768 of 192,137
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,345,383,941bundler
71,326,454,339activesupport
81,293,584,300rake
29971,309,175rspec
73595,284,833pry
1,32833,266,684pry-nav

Owners

#GravatarHandle
1iconConvincible