{"id":23213232,"url":"https://github.com/siman-man/object_tree","last_synced_at":"2025-08-19T05:32:56.739Z","repository":{"id":10697152,"uuid":"12940326","full_name":"siman-man/object_tree","owner":"siman-man","description":"ObjectTree is like tree command for Ruby ancestors.","archived":false,"fork":false,"pushed_at":"2017-09-27T21:50:12.000Z","size":49,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-30T14:17:33.920Z","etag":null,"topics":["gem","ruby"],"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":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-19T03:54:29.000Z","updated_at":"2023-11-07T12:36:36.000Z","dependencies_parsed_at":"2022-09-24T06:20:58.209Z","dependency_job_id":null,"html_url":"https://github.com/siman-man/object_tree","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siman-man%2Fobject_tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siman-man%2Fobject_tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siman-man%2Fobject_tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siman-man%2Fobject_tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siman-man","download_url":"https://codeload.github.com/siman-man/object_tree/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230326794,"owners_count":18209050,"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":["gem","ruby"],"created_at":"2024-12-18T19:15:57.293Z","updated_at":"2024-12-18T19:15:57.913Z","avatar_url":"https://github.com/siman-man.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ObjectTree\n\n[![Build Status](https://travis-ci.org/siman-man/object_tree.svg?branch=master)](https://travis-ci.org/siman-man/object_tree)\n\nObjectTree is like tree command for Ruby ancestors.\n\n\n## Installation\n\n```\n$ gem install object_tree\n```\n\n    \n## Usage\n\n``` ruby\nrequire 'object_tree'\n\nclass A\nend\n\nclass B \u003c A\nend\n\nclass C \u003c B\nend\n\nputs ObjectTree.create(A)\n```\n\noutput\n\n```zsh\n\u003cC\u003e A\n└───── \u003cC\u003e B\n        └───── \u003cC\u003e C\n```\n\n\nmore complex pattern\n\n```ruby\nrequire 'object_tree'\n\nmodule D\nend\n\nmodule E\nend\n\nclass A\n  include D\nend\n\nclass B \u003c A\nend\n\nclass C \u003c A\n  include E\nend\n\nclass F \u003c B\n  include E\nend\n\nputs ObjectTree.create(D)\n```\n\noutput\n\n```\n\u003cM\u003e D\n└───── \u003cC\u003e A\n        ├───── \u003cC\u003e B\n        │       └───── \u003cM\u003e E\n        │               └───── \u003cC\u003e F\n        └───── \u003cM\u003e E\n                └───── \u003cC\u003e C\n```\n\ncan use from terminal by using `rotree` command.\n\n```\n$ rotree Numeric\n```\n\nRuby 2.3.3\n\n```\n\u003cC\u003e Numeric\n├───── \u003cC\u003e Complex\n├───── \u003cC\u003e Float\n├───── \u003cC\u003e Integer\n│       ├───── \u003cC\u003e Bignum\n│       └───── \u003cC\u003e Fixnum\n└───── \u003cC\u003e Rational\n```\n\nRuby 2.4.0\n\n```\n\u003cC\u003e Numeric\n├───── \u003cC\u003e Complex\n├───── \u003cC\u003e Float\n├───── \u003cC\u003e Integer\n└───── \u003cC\u003e Rational\n```\n\nyou can see unify Fixnum and Bignum into Integer from ruby 2.4.0\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiman-man%2Fobject_tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiman-man%2Fobject_tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiman-man%2Fobject_tree/lists"}