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: 106,640 of 186,698
Downloads: 6,741

Daily

Ranking: 150,178 of 186,685
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
12,900,560,356bundler
71,165,243,863activesupport
101,125,994,016rake
27908,151,619rspec
71541,923,162pry
1,32429,901,053pry-nav

Owners

#GravatarHandle
1iconConvincible