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,125 of 188,354
Downloads: 7,047

Daily

Ranking: 125,166 of 188,339
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,090,212,201bundler
71,243,179,457activesupport
101,192,295,793rake
29936,893,351rspec
74565,893,447pry
1,32031,574,314pry-nav

Owners

#GravatarHandle
1iconConvincible