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,877 of 187,591
Downloads: 6,968

Daily

Ranking: 69,839 of 187,571
Downloads: 8

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,011,203,451bundler
71,212,119,821activesupport
101,165,649,814rake
28925,037,502rspec
73556,238,958pry
1,31830,853,622pry-nav

Owners

#GravatarHandle
1iconConvincible