RubyGems Navigation menu

hash_dial 1.0.1

Avoid all errors when accessing (deeply nested) Hash 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 hash key (e.g. hash[:a][:b][:c]), just surround this with '.dial' and '.call'.

Gemfile:
=

instalar:
=

Versões:

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

Development Dependencies (3):

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

Donos:

Autores:

  • Convincible

SHA 256 checksum:

=

Total de downloads 5.312

Desta versão 1.588

Versão lançada:

Licenças:

N/A

Versão Requerida do Ruby: ~> 2.3

Links: