{"id":16737625,"url":"https://github.com/shioyama/method_found","last_synced_at":"2025-03-21T22:31:28.724Z","repository":{"id":55458316,"uuid":"88412854","full_name":"shioyama/method_found","owner":"shioyama","description":"Intercept method_missing calls and do something useful.","archived":false,"fork":false,"pushed_at":"2020-12-29T13:48:37.000Z","size":46,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T02:39:28.240Z","etag":null,"topics":["ruby"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shioyama.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-16T12:50:08.000Z","updated_at":"2024-01-16T17:03:41.000Z","dependencies_parsed_at":"2022-08-15T00:40:46.857Z","dependency_job_id":null,"html_url":"https://github.com/shioyama/method_found","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shioyama%2Fmethod_found","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shioyama%2Fmethod_found/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shioyama%2Fmethod_found/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shioyama%2Fmethod_found/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shioyama","download_url":"https://codeload.github.com/shioyama/method_found/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244880121,"owners_count":20525505,"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":["ruby"],"created_at":"2024-10-13T00:27:11.263Z","updated_at":"2025-03-21T22:31:28.199Z","avatar_url":"https://github.com/shioyama.png","language":"Ruby","readme":"# MethodFound\n\n[![Gem Version](https://badge.fury.io/rb/method_found.svg)][gem]\n[![Build Status](https://travis-ci.org/shioyama/method_found.svg?branch=master)][travis]\n\n[gem]: https://rubygems.org/gems/method_found\n[travis]: https://travis-ci.org/shioyama/method_found\n[docs]: http://www.rubydoc.info/gems/method_found\n\nIntercept `method_missing` and do something useful with it.\n\n## Installation\n\nAdd to your Gemfile:\n\n```ruby\ngem 'method_found', '~\u003e 0.1.6'\n```\n\nAnd bundle it.\n\n## Usage\n\nInclude an instance of `MethodFound::Builder` with a block defining all\npatterns to match. Identify a pattern with the `intercept` method, like this:\n\n```ruby\nclass Foo\n  include MethodFound::Builder.new {\n    intercept /\\Asay_([a-z]+)\\Z/ do |method_name, matches, *arguments, \u0026block|\n      \"#{matches[1]}!\"\n    end\n  }\nend\n```\n\nNow you can say things:\n\n```ruby\nfoo = Foo.new\nfoo.say_hello\n#=\u003e \"hello!\"\nfoo.say_bye\n#=\u003e \"bye!\"\n```\n\nThat's it!\n\n## More Information\n\n- [Github repository](https://www.github.com/shioyama/method_found)\n- [API documentation][docs]\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshioyama%2Fmethod_found","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshioyama%2Fmethod_found","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshioyama%2Fmethod_found/lists"}