{"id":23213242,"url":"https://github.com/siman-man/ripper_tree","last_synced_at":"2025-08-19T05:32:57.474Z","repository":{"id":56892359,"uuid":"82552950","full_name":"siman-man/ripper_tree","owner":"siman-man","description":"RipperTree is like tree command for Ripper#sexp.","archived":false,"fork":false,"pushed_at":"2017-02-26T14:07:07.000Z","size":22,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-30T16:19:16.018Z","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":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-20T11:58:26.000Z","updated_at":"2023-11-07T12:44:41.000Z","dependencies_parsed_at":"2022-08-21T01:20:45.168Z","dependency_job_id":null,"html_url":"https://github.com/siman-man/ripper_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%2Fripper_tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siman-man%2Fripper_tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siman-man%2Fripper_tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siman-man%2Fripper_tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siman-man","download_url":"https://codeload.github.com/siman-man/ripper_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:58.560Z","updated_at":"2024-12-18T19:15:59.199Z","avatar_url":"https://github.com/siman-man.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RipperTree\n\n[![Build Status](https://travis-ci.org/siman-man/ripper_tree.svg?branch=master)](https://travis-ci.org/siman-man/ripper_tree)\n\nRipperTree is like `tree` command for Ripper#sexp.\n\n## Installation\n\n```\n$ gem install ripper_tree\n```\n\n## Usage\n\nYou can use `rtree` command.\n\nsample.rb\n\n```ruby\n1 + 1\n```\n\nexec `rtree` command.\n\n```\n$ rtree sample.rb\n```\n\nresult\n\n```ruby\n:program\n └──── :binary\n         ├──── :@int [\"1\"] 1:0\n         ├──── :+\n         └──── :@int [\"1\"] 1:4\n```\n\nif use in ruby code.\n\n```rb\nrequire 'ripper_tree'\nrequire 'pp'\n\ncode =\u003c\u003c-CODE\nputs \"hello world\"\nCODE\n\npp Ripper.sexp(code)\nputs\nputs RipperTree.create(code)\n```\n\nresult\n\n```ruby\n[:program,\n [[:command,\n   [:@ident, \"puts\", [1, 0]],\n   [:args_add_block,\n    [[:string_literal,\n      [:string_content, [:@tstring_content, \"hello world\", [1, 6]]]]],\n    false]]]]\n\n:program\n └──── :command\n         ├──── :@ident [\"puts\"] 1:0\n         └──── :args_add_block\n                 ├──── :string_literal\n                 │       └──── :string_content\n                 │               └──── :@tstring_content [\"hello world\"] 1:6\n                 └──── false\n```\n\nand can use `-e \"command\"` option\n\n```\n$ rtree -e \"1+2*3\"\n```\n\nresult\n\n```ruby\n:program\n └──── :binary\n         ├──── :@int [\"1\"] 1:0\n         ├──── :+\n         └──── :binary\n                 ├──── :@int [\"2\"] 1:2\n                 ├──── :*\n                 └──── :@int [\"3\"] 1:4\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/siman-man/ripper_tree. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiman-man%2Fripper_tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiman-man%2Fripper_tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiman-man%2Fripper_tree/lists"}