Registry / utility / dig-rb

dig-rb

JSON →
library1.0.1rbrubygemsunverified

Backfills the #dig method for Array, Hash, and Struct for older Ruby versions.

gem install dig_rb
INSTALL
IMPORT
SIG · DIG-RB
D
dig-rb
utilityrubyv1.0.1
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.

DigRb
require 'dig_rb'

Uses the backported #dig method on a nested hash.

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

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
dig-rb — gem install dig-rb · libregistry