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,042 of 183,127
Downloads: 6,304

Daily

Ranking: 74,510 of 183,106
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
12,409,222,051bundler
7990,071,846activesupport
10954,475,095rake
25818,160,872rspec
68467,204,181pry
1,27525,894,937pry-nav

Owners

#GravatarHandle
1iconConvincible