Registry / utility / ruby-dig

ruby-dig

JSON →
library0.0.2rbrubygemsunverified

Pure Ruby implementation of Array#dig and Hash#dig for Ruby < 2.3.

gem install ruby_dig
INSTALL
IMPORT
SIG · RUBY-DIG
R
ruby-dig
utilityrubyv0.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RubyDig
require 'ruby_dig'

Use dig on nested hashes in older Ruby versions

require 'ruby_dig' hash = {a: {b: 1}} hash.dig(:a, :b)
Debug
Known issues
gotchaOnly needed for Ruby < 2.3; built-in dig is available in Ruby 2.3+
fix
Remove gem if using Ruby 2.3 or later
affects: >= 0.0.2
Upgrade
Version history
0.0.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
ruby-dig — gem install ruby-dig · libregistry