{"id":23213228,"url":"https://github.com/siman-man/method_call_tree","last_synced_at":"2025-08-19T05:32:55.390Z","repository":{"id":56883440,"uuid":"115626865","full_name":"siman-man/method_call_tree","owner":"siman-man","description":"MethodCallTree is like tree command for method call stack.","archived":false,"fork":false,"pushed_at":"2018-03-13T23:15:02.000Z","size":22,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-29T09:44:09.412Z","etag":null,"topics":["ruby","rubygem"],"latest_commit_sha":null,"homepage":"","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/siman-man.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-12-28T13:40:25.000Z","updated_at":"2023-11-07T12:47:31.000Z","dependencies_parsed_at":"2022-08-20T13:10:42.003Z","dependency_job_id":null,"html_url":"https://github.com/siman-man/method_call_tree","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siman-man%2Fmethod_call_tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siman-man%2Fmethod_call_tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siman-man%2Fmethod_call_tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siman-man%2Fmethod_call_tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siman-man","download_url":"https://codeload.github.com/siman-man/method_call_tree/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230256166,"owners_count":18197851,"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","rubygem"],"created_at":"2024-12-18T19:15:56.436Z","updated_at":"2024-12-18T19:15:57.132Z","avatar_url":"https://github.com/siman-man.png","language":"Ruby","readme":"[![Build Status](https://travis-ci.org/siman-man/method_call_tree.svg?branch=master)](https://travis-ci.org/siman-man/method_call_tree)\n\n# MethodCallTree\n\nMethodCallTree is like tree command for method call stack.\n\n## Installation\n\n```ruby\ngem 'method_call_tree'\n```\n\n## Usage\n\n```ruby\nrequire 'method_call_tree'\n\nclass Foo\n  def foo\n    bar\n    baz\n  end\n\n  def bar\n  end\n\n  def baz\n    hoge\n  end\n\n  def hoge\n  end\nend\n\ntree = MethodCallTree.create do\n  Foo.new.foo\nend\n\nputs tree\n```\n\nresult\n\n```\nfoo\n├───── bar\n└───── baz\n        └───── hoge\n```\n\n`class` option\n\n```ruby\ntree = MethodCallTree.create(class: true) do\n  Foo.new.foo\nend\n```\n\nresult\n\n```\nFoo::foo\n├───── Foo::bar\n└───── Foo::baz\n        └───── Foo::hoge\n```\n\n---\n\n`args` options enable\n\n```ruby\nrequire 'method_call_tree'\n\ndef fibonacci(a = 1, b = 0)\n  return if a \u003e 10\n  fibonacci(a + b, a)\nend\n\ntree = MethodCallTree.create(args: true) do\n  fibonacci\nend\n\nputs tree\n```\n\nresult\n\n```\nfibonacci(a = 1, b = 0)\n└───── fibonacci(a = 1, b = 1)\n        └───── fibonacci(a = 2, b = 1)\n                └───── fibonacci(a = 3, b = 2)\n                        └───── fibonacci(a = 5, b = 3)\n                                └───── fibonacci(a = 8, b = 5)\n                                        └───── fibonacci(a = 13, b = 8)\n```\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the MethodCallTree project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/siman-man/method_call_tree/blob/master/CODE_OF_CONDUCT.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiman-man%2Fmethod_call_tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiman-man%2Fmethod_call_tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiman-man%2Fmethod_call_tree/lists"}