{"id":30838907,"url":"https://github.com/lucas4tech/ruby-sub-strings-example","last_synced_at":"2025-09-06T18:13:35.899Z","repository":{"id":186919211,"uuid":"609628691","full_name":"lucas4tech/ruby-sub-strings-example","owner":"lucas4tech","description":" Build a method that takes a word as the first argument and then an array of valid substrings your dictionary as the second argument using Ruby 🎯","archived":false,"fork":false,"pushed_at":"2023-03-04T18:52:45.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-12T05:24:36.020Z","etag":null,"topics":["challenge","design-patterns","hackathon","ruby"],"latest_commit_sha":null,"homepage":"","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/lucas4tech.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,"governance":null}},"created_at":"2023-03-04T18:52:18.000Z","updated_at":"2025-05-25T23:15:44.000Z","dependencies_parsed_at":"2023-08-08T09:04:34.464Z","dependency_job_id":null,"html_url":"https://github.com/lucas4tech/ruby-sub-strings-example","commit_stats":null,"previous_names":["silva4dev/ruby-sub-strings","lucas4tech/ruby-sub-strings-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lucas4tech/ruby-sub-strings-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucas4tech%2Fruby-sub-strings-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucas4tech%2Fruby-sub-strings-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucas4tech%2Fruby-sub-strings-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucas4tech%2Fruby-sub-strings-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucas4tech","download_url":"https://codeload.github.com/lucas4tech/ruby-sub-strings-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucas4tech%2Fruby-sub-strings-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273941528,"owners_count":25195105,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["challenge","design-patterns","hackathon","ruby"],"created_at":"2025-09-06T18:13:33.765Z","updated_at":"2025-09-06T18:13:35.891Z","avatar_url":"https://github.com/lucas4tech.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sub Strings\n\nImplement a method #substrings that takes a word as the first argument and then an array of valid substrings (your dictionary) as the second argument. It should return a hash listing each substring (case insensitive) that was found in the original string and how many times it was found.\n\n```\n  dictionary = [\"below\",\"down\",\"go\",\"going\",\"horn\",\"how\",\"howdy\",\"it\",\"i\",\"low\",\"own\",\"part\",\"partner\",\"sit\"]\n  =\u003e [\"below\",\"down\",\"go\",\"going\",\"horn\",\"how\",\"howdy\",\"it\",\"i\",\"low\",\"own\",\"part\",\"partner\",\"sit\"]\n  substrings(\"below\", dictionary)\n  =\u003e { \"below\" =\u003e 1, \"low\" =\u003e 1 }\n```\nNext, make sure your method can handle multiple words:\n```\n  substrings(\"Howdy partner, sit down! How's it going?\", dictionary)\n  =\u003e { \"down\" =\u003e 1, \"go\" =\u003e 1, \"going\" =\u003e 1, \"how\" =\u003e 2, \"howdy\" =\u003e 1, \"it\" =\u003e 2, \"i\" =\u003e 3, \"own\" =\u003e 1, \"part\" =\u003e 1, \"partner\" =\u003e 1, \"sit\" =\u003e 1 }\n```\n\n#### Quick Tips:\n* Recall how to turn strings into arrays and arrays into strings.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucas4tech%2Fruby-sub-strings-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucas4tech%2Fruby-sub-strings-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucas4tech%2Fruby-sub-strings-example/lists"}