{"id":16131854,"url":"https://github.com/andrewvy/method_missing","last_synced_at":"2025-03-18T14:31:28.728Z","repository":{"id":57525493,"uuid":"83697908","full_name":"andrewvy/method_missing","owner":"andrewvy","description":"Elixir Library for dynamic code execution","archived":false,"fork":false,"pushed_at":"2017-03-02T17:12:00.000Z","size":4,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T05:57:10.057Z","etag":null,"topics":["elixir","enterprise-ready","professional-people"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/andrewvy.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":"2017-03-02T16:11:45.000Z","updated_at":"2022-04-08T17:51:56.000Z","dependencies_parsed_at":"2022-08-28T20:21:53.654Z","dependency_job_id":null,"html_url":"https://github.com/andrewvy/method_missing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewvy%2Fmethod_missing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewvy%2Fmethod_missing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewvy%2Fmethod_missing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewvy%2Fmethod_missing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewvy","download_url":"https://codeload.github.com/andrewvy/method_missing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243933431,"owners_count":20370986,"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":["elixir","enterprise-ready","professional-people"],"created_at":"2024-10-09T22:27:44.898Z","updated_at":"2025-03-18T14:31:28.404Z","avatar_url":"https://github.com/andrewvy.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MethodMissing\n\nSwitched to Elixir and missed method_missing functionality in other languages?\n\nThis package is for you! It implements method_missing which you can bring into any other module!\n\n## Usage\n\n```elixir\ndefmodule Dog do\n  use MethodMissing\n\n  def method_missing(func, _args) do\n    func_name = Atom.to_string(func)\n\n    cond do\n      Regex.match?(~r/bark|woof/, func_name) -\u003e \"WOOF\"\n      true -\u003e \"?\"\n    end\n  end\nend\n\nDog.bark()\n\u003e \"WOOF\"\nDog.woof()\n\u003e \"WOOF\"\nDog.meow()\n\u003e \"?\"\n\n```\n\n## Why?\n\n`¯\\_(ツ)_/¯`\n\nIf you like ~~weird~~ great things, check out https://github.com/wojtekmach/oop\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed as:\n\n  1. Add `method_missing` to your list of dependencies in `mix.exs`:\n\n    ```elixir\n    def deps do\n      [{:method_missing, \"~\u003e 0.1.0\"}]\n    end\n    ```\n\n  2. Ensure `method_missing` is started before your application:\n\n    ```elixir\n    def application do\n      [applications: [:method_missing]]\n    end\n    ```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewvy%2Fmethod_missing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewvy%2Fmethod_missing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewvy%2Fmethod_missing/lists"}