{"id":16086167,"url":"https://github.com/zw963/pry-disasm","last_synced_at":"2025-09-01T16:41:34.663Z","repository":{"id":147696577,"uuid":"183912949","full_name":"zw963/pry-disasm","owner":"zw963","description":"Pry plugin that displays YARV bytecode for a method or expression.","archived":false,"fork":false,"pushed_at":"2019-05-02T02:10:44.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-11T10:05:19.474Z","etag":null,"topics":[],"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/zw963.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-28T13:38:11.000Z","updated_at":"2019-05-02T02:10:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b723955-c103-4704-9934-fd01987decba","html_url":"https://github.com/zw963/pry-disasm","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/zw963%2Fpry-disasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zw963%2Fpry-disasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zw963%2Fpry-disasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zw963%2Fpry-disasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zw963","download_url":"https://codeload.github.com/zw963/pry-disasm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247345857,"owners_count":20924102,"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":[],"created_at":"2024-10-09T13:10:55.035Z","updated_at":"2025-04-05T14:11:58.411Z","avatar_url":"https://github.com/zw963.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PryDisasm [![Gem Version](https://badge.fury.io/rb/pry-disasm.svg)](http://badge.fury.io/rb/pry-disasm)\n\nA bunch of code was taken from [pry-internal](https://github.com/cout/pry-internal/tree/master/pry-disasm).\n\nPry plugin that take a `Method object` or `ruby code` string,  and returns a String with the human readable instructions(YARV bytecode) for it.\n\n## Getting Started\n\nInstall via Rubygems\n\n    $ gem install pry-disasm\n\n  then add `require 'pry-disasm'` in your ruby code.\n\nOR ...\n\nAdd to your Gemfile\n\n    gem 'pry-disasm'\n\n## Usage\n\nSee Instruction for a method\n\n```rb\n(pry):main(0)\u003e def say_hello; puts 'hello'; end\n\n=\u003e :say_hello\n\n(pry):main(0)\u003e disasm method(:say_hello)\n\n== disasm: #\u003cISeq:say_hello@(pry):1 (1,0)-(1,32)\u003e (catch: FALSE)\n0000 putself                                                          (   1)[LiCa]\n0001 putstring                    \"hello\"\n0003 opt_send_without_block       \u003ccallinfo!mid:puts, argc:1, FCALL|ARGS_SIMPLE\u003e, \u003ccallcache\u003e\n0006 leave                        [Re]\n```\n\nsee Instruction of a expression\n\n```rb\n(pry):main(0)\u003e disasm '1 + 1'\n\n== disasm: #\u003cISeq:\u003ccompiled\u003e@\u003ccompiled\u003e:1 (1,0)-(1,5)\u003e (catch: FALSE)\n0000 putobject_INT2FIX_1_                                             (   1)[Li]\n0001 putobject_INT2FIX_1_\n0002 opt_plus                     \u003ccallinfo!mid:+, argc:1, ARGS_SIMPLE\u003e, \u003ccallcache\u003e\n0005 leave\n\n```\n\n## Support\n\n  * MRI 1.9.3+\n\n## Contributing\n\n  * [Bug reports](https://github.com/zw963/pry-disasm/issues)\n  * [Source](https://github.com/zw963/pry-disasm)\n\n## license\n\nReleased under the MIT license, See [LICENSE](https://github.com/zw963/pry-disasm/blob/master/LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzw963%2Fpry-disasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzw963%2Fpry-disasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzw963%2Fpry-disasm/lists"}