RubyGems Navigation menu

hash_dial 1.0.0

Avoid all errors when accessing a (deeply nested) Hash key. HashDial goes one step beyond Hash::dig() by returning 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 hash key, just surround this with '.dial' and '.call'.

Gemfile:
=

installation:
=

Versions:

  1. 1.0.2 January 09, 2019 (7,5 ko)
  2. 1.0.1 January 08, 2019 (8 ko)
  3. 1.0.0 December 20, 2018 (7,5 ko)

Dépendances de Development (3):

bundler ~> 1.17
rake ~> 10.0
rspec ~> 3.0

Propriétaires:

Auteurs:

  • Convincible

Total de contrôle SHA 256:

=

Total de téléchargements 5 296

Pour cette version 1 620

Version publiée:

License:

aucune

Version de Ruby requise: >= 0

Liens: