RubyGems Navigation menu

key_dial 1.2.0

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'.

Gemfile:
=

インストール:
=

バージョン履歴:

  1. 1.2.0 October 08, 2019 (11KB)
  2. 1.1.0 September 25, 2019 (11KB)
  3. 1.0.0 January 09, 2019 (8.5KB)

Development依存関係 (6):

bundler ~> 2.0
pry >= 0
pry-nav >= 0
rake ~> 12.0
rspec ~> 3.0

所有者:

プッシュ者:

作者:

  • Convincible

SHA 256チェックサム:

=

累計ダウンロード数 6,495

このバージョンのみ 2,960

このバージョンがリリースされたのは:

ライセンス:

N/A

必要なRubyのバージョン: >= 1.8.6

リンク: