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,312 of 188,779
Downloads: 7,073

Daily

Ranking: 34,125 of 188,757
Downloads: 3

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,120,857,398bundler
71,255,381,271activesupport
101,202,684,222rake
29941,363,553rspec
74569,632,751pry
1,32031,756,379pry-nav

Owners

#GravatarHandle
1iconConvincible