https://github.com/joker1007/proc_to_ast
convert Proc to Parser::AST::Node, using parser gem.
https://github.com/joker1007/proc_to_ast
Last synced: about 7 hours ago
JSON representation
Repository metadata
convert Proc to Parser::AST::Node, using parser gem.
- Host: GitHub
- URL: https://github.com/joker1007/proc_to_ast
- Owner: joker1007
- License: mit
- Created: 2014-04-05T11:24:33.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-05-04T12:32:27.000Z (over 1 year ago)
- Last Synced: 2025-11-13T06:03:39.292Z (29 days ago)
- Language: Ruby
- Homepage:
- Size: 21.5 KB
- Stars: 12
- Watchers: 2
- Forks: 4
- Open Issues: 0
- Releases: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
README.md
proc_to_ast
Add #to_ast method to Proc.
#to_ast convert Proc to Parser::AST::Node, using parser gem.
Installation
Add this line to your application's Gemfile:
gem 'proc_to_ast'
And then execute:
$ bundle
Or install it yourself as:
$ gem install proc_to_ast
Usage
require 'proc_to_ast'
foo = proc { p(1 + 1) }
foo.to_ast
# =>
# (block
# (send nil :proc)
# (args)
# (send nil :p
# (send
# (int 1) :+
# (int 1))))
foo.to_source
# => "proc do\n p(1 + 1)\nend"
foo.to_source(highlight: true)
# => "proc \e[32mdo\e[0m\n p(\e[1;34m1\e[0m + \e[1;34m1\e[0m)\n\e[32mend\e[0m"
Contributing
- Fork it ( https://github.com/[my-github-username]/proc_to_ast/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Owner metadata
- Name: Tomohiro Hashidate
- Login: joker1007
- Email:
- Kind: user
- Description: Repro inc. Chief Architect
- Website: http://joker1007.hatenablog.com/
- Location: Tokyo, Asakusa
- Twitter: joker1007
- Company: Repro inc
- Icon url: https://avatars.githubusercontent.com/u/116996?v=4
- Repositories: 187
- Last ynced at: 2024-04-15T22:03:12.421Z
- Profile URL: https://github.com/joker1007
GitHub Events
Total
- Watch event: 1
- Fork event: 2
Last Year
- Watch event: 1
- Fork event: 2
Committers metadata
Last synced: 7 days ago
Total Commits: 27
Total Committers: 3
Avg Commits per committer: 9.0
Development Distribution Score (DDS): 0.074
Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0
| Name | Commits | |
|---|---|---|
| joker1007 | k****t@g****m | 25 |
| sue445 | s****5@s****t | 1 |
| Ievgen Voloshchuk | e****k@g****m | 1 |
Committer domains:
- sue445.net: 1
Issue and Pull Request metadata
Last synced: about 2 months ago
Total issues: 0
Total pull requests: 4
Average time to close issues: N/A
Average time to close pull requests: about 2 years
Total issue authors: 0
Total pull request authors: 4
Average comments per issue: 0
Average comments per pull request: 1.0
Merged pull request: 3
Bot issues: 0
Bot pull requests: 0
Past year issues: 0
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 0
Past year pull request authors: 0
Past year average comments per issue: 0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
Top Pull Request Authors
- synth (2)
- joker1007 (2)
- evoloshchuk (1)
- sue445 (1)
Top Issue Labels
Top Pull Request Labels
Package metadata
- Total packages: 2
-
Total downloads:
- rubygems: 141,100,741 total
- Total docker downloads: 870,237,354
- Total dependent packages: 6 (may contain duplicates)
- Total dependent repositories: 2,959 (may contain duplicates)
- Total versions: 18
- Total maintainers: 1
gem.coop: proc_to_ast
Add #to_ast method to Proc. #to_ast converts Proc object to AST::Node.
- Homepage: https://github.com/joker1007/proc_to_ast
- Documentation: http://www.rubydoc.info/gems/proc_to_ast/
- Licenses: MIT
- Latest release: 0.2.0 (published over 1 year ago)
- Last Synced: 2025-12-07T01:02:05.380Z (5 days ago)
- Versions: 9
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 70,561,271 Total
- Docker Downloads: 435,118,677
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.17%
- Docker downloads count: 0.281%
- Downloads: 0.399%
- Maintainers (1)
rubygems.org: proc_to_ast
Add #to_ast method to Proc. #to_ast converts Proc object to AST::Node.
- Homepage: https://github.com/joker1007/proc_to_ast
- Documentation: http://www.rubydoc.info/gems/proc_to_ast/
- Licenses: MIT
- Latest release: 0.2.0 (published over 1 year ago)
- Last Synced: 2025-12-05T17:03:48.157Z (6 days ago)
- Versions: 9
- Dependent Packages: 6
- Dependent Repositories: 2,959
- Downloads: 70,539,470 Total
- Docker Downloads: 435,118,677
-
Rankings:
- Docker downloads count: 0.347%
- Downloads: 0.481%
- Dependent repos count: 0.578%
- Dependent packages count: 2.484%
- Average: 5.784%
- Forks count: 15.072%
- Stargazers count: 15.74%
- Maintainers (1)
Dependencies
- bundler >= 1.5 development
- rake >= 0 development
- rspec >= 0 development
- coderay >= 0
- parser >= 0
- unparser >= 0
- actions/checkout v2 composite
- ruby/setup-ruby v1 composite
Score: 24.31806234686425