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,437 of 190,317
Downloads: 7,151

Daily

Ranking: 44,598 of 190,280
Downloads: 5

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,240,425,504bundler
71,293,977,679activesupport
81,255,248,311rake
29957,358,331rspec
72583,359,451pry
1,32332,694,765pry-nav

Owners

#GravatarHandle
1iconConvincible