{"id":15406478,"url":"https://github.com/odlp/dotize","last_synced_at":"2025-07-18T17:36:33.987Z","repository":{"id":62557434,"uuid":"49334509","full_name":"odlp/dotize","owner":"odlp","description":"Dig into a Hash with a dot-delimited string","archived":false,"fork":false,"pushed_at":"2018-04-04T16:19:40.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-17T06:50:20.312Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/odlp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-09T17:42:49.000Z","updated_at":"2018-04-04T16:19:41.000Z","dependencies_parsed_at":"2022-11-03T06:30:26.297Z","dependency_job_id":null,"html_url":"https://github.com/odlp/dotize","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/odlp/dotize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odlp%2Fdotize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odlp%2Fdotize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odlp%2Fdotize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odlp%2Fdotize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/odlp","download_url":"https://codeload.github.com/odlp/dotize/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odlp%2Fdotize/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265802072,"owners_count":23830508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T16:23:11.904Z","updated_at":"2025-07-18T17:36:33.960Z","avatar_url":"https://github.com/odlp.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dotize\n\n[![Build Status](https://travis-ci.org/odlp/dotize.svg?branch=master)](https://travis-ci.org/odlp/dotize)\n\nAccess values from a deeply-nested Hash using a simple string:\n\n```ruby\nmy_hash = {'a' =\u003e {'b' =\u003e {'c' =\u003e 123}}}\nmy_hash.extend(Dotize)\nmy_hash.dot('a.b.c') # =\u003e 123\n```\n\nIf a value isn't found, nil is returned by default:\n\n```ruby\nmy_hash.dot('a.b.z.z.z') # =\u003e nil\n```\n\nYou can provide a block to override the default, like Ruby's [Hash#fetch](http://ruby-doc.org/core-2.3.0/Hash.html#method-i-fetch):\n\n```ruby\nmy_hash.dot('a.b.z.z.z') { |el| 2 + 2 } # =\u003e 4\n```\n\n## Development\n\n- Run specs via `rake` or `bundle exec rspec`\n\n## Credits\n\nThe name of this is ~~inspired-by~~ copied from [github.com/vardars/dotize](https://github.com/vardars/dotize), a Javascript equivalent.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodlp%2Fdotize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fodlp%2Fdotize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodlp%2Fdotize/lists"}