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,779 of 187,224
Downloads: 6,913

Daily

Ranking: 81,475 of 187,196
Downloads: 8

Depended by

RankDownloadsName

Depends on

RankDownloadsName
12,971,947,338bundler
71,195,631,968activesupport
101,151,463,039rake
27919,195,736rspec
73551,385,293pry
1,31630,562,520pry-nav

Owners

#GravatarHandle
1iconConvincible