{"id":81659,"library":"dig-rb","title":"Dig RB","description":"Backfills the #dig method for Array, Hash, and Struct for older Ruby versions.","status":"active","version":"1.0.1","language":"ruby","source_language":null,"source_url":"https://github.com/jrochkind/dig_rb","tags":["dig","backport","hash","array","struct"],"install":[{"cmd":"gem install dig_rb","lang":"bash","label":"gem install"},{"cmd":"# Gemfile\ngem 'dig_rb', '~> 1.0.1'","lang":"ruby","label":"Gemfile"}],"dependencies":[],"imports":[{"symbol":"DigRb","correct":"require 'dig_rb'"}],"quickstart":{"code":"require 'dig_rb'\n\nhash = {a: {b: 1}}\nhash.dig(:a, :b) # => 1","lang":"ruby","description":"Uses the backported #dig method on a nested hash."},"warnings":[{"fix":"Remove gem if using Ruby 2.3 or later.","message":"Only needed for Ruby < 2.3; built-in in Ruby 2.3+.","severity":"gotcha","affected_versions":">= 2.3"}],"env_vars":null,"search_vec":"'array':8,19 'backfil':3 'backport':17 'dig':1,5,16 'hash':9,18 'method':6 'older':13 'rb':2 'rubi':14 'struct':11,20 'version':15","created_at":"2026-06-19T04:57:07.404530+00:00","updated_at":"2026-06-19T04:57:07.404530+00:00","problems":[],"ecosystem":"rubygems","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/jrochkind/dig_rb","github":"https://github.com/jrochkind/dig_rb","docs":"http://www.rubydoc.info/gems/dig_rb/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}