https://github.com/ruby/irb
interactive Ruby
https://github.com/ruby/irb
Keywords
hacktoberfest repl ruby
Keywords from Contributors
activerecord activejob mvc rubygems debugger bigdecimal debugging-tool documentation-tool webrick rack
Last synced: about 1 hour ago
JSON representation
Repository metadata
interactive Ruby
- Host: GitHub
- URL: https://github.com/ruby/irb
- Owner: ruby
- License: bsd-2-clause
- Created: 2018-06-23T04:55:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2026-02-16T14:45:31.000Z (15 days ago)
- Last Synced: 2026-02-23T21:58:14.996Z (8 days ago)
- Topics: hacktoberfest, repl, ruby
- Language: Ruby
- Homepage: https://ruby.github.io/irb/
- Size: 3.04 MB
- Stars: 442
- Watchers: 45
- Forks: 141
- Open Issues: 66
- Releases: 74
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
README.md
IRB
IRB stands for "interactive Ruby" and is a tool to interactively execute Ruby expressions read from the standard input.
The irb command from your shell will start the interpreter.
Installation
[!Note]
IRB is a default gem of Ruby so you shouldn't need to install it separately.
But if you're using Ruby 2.6 or later and want to upgrade/install a specific version of IRB, please follow these steps.
To install it with bundler, add this line to your application's Gemfile:
gem 'irb'
And then execute:
$ bundle
Or install it directly with:
$ gem install irb
Usage
[!Note]
We're working hard to match Pry's variety of powerful features in IRB, and you can track our progress or find contribution ideas in this document.
The irb Executable
You can start a fresh IRB session by typing irb in your terminal.
In the session, you can evaluate Ruby expressions or even prototype a small Ruby script. An input is executed when it is syntactically complete.
$ irb
irb(main):001> 1 + 2
=> 3
irb(main):002* class Foo
irb(main):003* def foo
irb(main):004* puts 1
irb(main):005* end
irb(main):006> end
=> :foo
irb(main):007> Foo.new.foo
1
=> nil
The binding.irb Breakpoint
If you use Ruby 2.5 or later versions, you can also use binding.irb in your program as breakpoints.
Once a binding.irb is evaluated, a new IRB session will be started with the surrounding context:
$ ruby test.rb
From: test.rb @ line 2 :
1: def greet(word)
=> 2: binding.irb
3: puts "Hello #{word}"
4: end
5:
6: greet("World")
irb(main):001:0> word
=> "World"
irb(main):002:0> exit
Hello World
Debugging
You can use IRB as a debugging console with debug.gem with these options:
- In
binding.irb, use thedebugcommand to start anirb:rdbgsession with access to alldebug.gemcommands. - Use the
RUBY_DEBUG_IRB_CONSOLE=1environment variable to makedebug.gemuse IRB as the debugging console.
To learn more about debugging with IRB, see Debugging with IRB.
Documentation
https://ruby.github.io/irb/ provides a comprehensive guide to IRB's features and usage.
Configuration
See the Configuration page in the documentation.
Extending IRB
IRB v1.13.0 and later versions allows users/libraries to extend its functionality through official APIs.
For more information, please visit the IRB Extension Guide.
Contributing
See CONTRIBUTING.md for more information.
Releasing
rake release
gh release create vX.Y.Z --generate-notes
License
The gem is available as open source under the terms of the 2-Clause BSD License.
Owner metadata
- Name: The Ruby Programming Language
- Login: ruby
- Email: info@ruby-lang.org
- Kind: organization
- Description: Repositories related to the Ruby Programming language
- Website: https://www.ruby-lang.org/
- Location: Matsue, Japan
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/210414?v=4
- Repositories: 171
- Last ynced at: 2023-04-09T03:40:20.875Z
- Profile URL: https://github.com/ruby
GitHub Events
Total
- Release event: 4
- Delete event: 32
- Pull request event: 172
- Fork event: 20
- Issues event: 36
- Watch event: 47
- Issue comment event: 117
- Push event: 120
- Pull request review comment event: 93
- Pull request review event: 141
- Create event: 42
Last Year
- Release event: 1
- Delete event: 8
- Pull request event: 72
- Fork event: 16
- Issues event: 11
- Watch event: 24
- Issue comment event: 37
- Push event: 42
- Pull request review comment event: 27
- Pull request review event: 41
- Create event: 15
Committers metadata
Last synced: 2 days ago
Total Commits: 1,651
Total Committers: 125
Avg Commits per committer: 13.208
Development Distribution Score (DDS): 0.813
Commits in past year: 66
Committers in past year: 23
Avg Commits per committer in past year: 2.87
Development Distribution Score (DDS) in past year: 0.727
| Name | Commits | |
|---|---|---|
| aycabta | a****a@g****m | 309 |
| Stan Lo | s****2@g****m | 297 |
| Nobuyoshi Nakada | n****u@r****g | 169 |
| tomoya ishida | t****n@g****m | 137 |
| Takashi Kokubun | t****n@g****m | 134 |
| Hiroshi SHIBATA | h****t@r****g | 90 |
| keiju | k****u@b****e | 62 |
| matz | m****z@b****e | 49 |
| dependabot[bot] | 4****] | 28 |
| Yusuke Endoh | m****e@r****g | 24 |
| kazu | k****u@b****e | 22 |
| ima1zumi | 5****i | 18 |
| zzak | z****k@b****e | 17 |
| knu | k****u@b****e | 17 |
| Nobuhiro IMAI | n****v@y****p | 15 |
| Jeremy Evans | c****e@j****t | 13 |
| yugui | y****i@b****e | 12 |
| ydah | 1****h | 10 |
| naruse | n****e@b****e | 10 |
| akr | a****r@b****e | 8 |
| Benoit Daloze | e****p@g****m | 8 |
| Kaíque Kandy Koga | k****a@g****m | 7 |
| Colby Swandale | me@c****i | 7 |
| Burdette Lamar | B****r@Y****m | 7 |
| marcandre | m****e@b****e | 7 |
| Koichi Sasada | k****1@a****t | 6 |
| Masataka Pocke Kuwabara | k****a@p****e | 6 |
| a_matsuda | a****a@b****e | 6 |
| drbrain | d****n@b****e | 6 |
| manga_osyo | m****o@g****m | 5 |
| and 95 more... | ||
Committer domains:
- ruby-lang.org: 3
- shopify.com: 3
- redhat.com: 2
- mediadrive.ca: 1
- sorah.jp: 1
- callcc.net: 1
- headius.com: 1
- ac.auone-net.jp: 1
- mrkn.jp: 1
- thinkcreate.nl: 1
- andywaite.com: 1
- shakenbu.org: 1
- peterzhu.ca: 1
- pocke.me: 1
- atdot.net: 1
- colby.fyi: 1
- jeremyevans.net: 1
- yo.rim.or.jp: 1
- devalot.com: 1
- prajjwal.com: 1
- zenspider.com: 1
- oriontransfer.co.nz: 1
- clear-code.com: 1
- alpaca.tc: 1
- yahoo.co.jp: 1
- crowdworks.co.jp: 1
- welaika.com: 1
- instructure.com: 1
- gutov.dev: 1
- garytou.com: 1
- hey.com: 1
- rollingapple.net: 1
- greiz-reinsdorf.de: 1
- puppet.com: 1
Issue and Pull Request metadata
Last synced: 5 days ago
Total issues: 179
Total pull requests: 720
Average time to close issues: about 1 year
Average time to close pull requests: 19 days
Total issue authors: 103
Total pull request authors: 78
Average comments per issue: 2.24
Average comments per pull request: 0.61
Merged pull request: 589
Bot issues: 0
Bot pull requests: 20
Past year issues: 13
Past year pull requests: 78
Past year average time to close issues: 3 months
Past year average time to close pull requests: 25 days
Past year issue authors: 12
Past year pull request authors: 28
Past year average comments per issue: 1.23
Past year average comments per pull request: 0.44
Past year merged pull request: 49
Past year bot issues: 0
Past year bot pull requests: 8
Top Issue Authors
- st0012 (28)
- tompng (23)
- elfham (6)
- bkuhlmann (4)
- aycabta (4)
- zenspider (3)
- schneems (3)
- JunichiIto (3)
- ima1zumi (2)
- BurdetteLamar (2)
- joe-sharp (2)
- Earlopain (2)
- chadrschroeder (2)
- etiennebarrie (2)
- dgutov (2)
Top Pull Request Authors
- st0012 (286)
- tompng (176)
- hsbt (30)
- dependabot[bot] (20)
- ima1zumi (16)
- nobu (14)
- andyw8 (7)
- eval (6)
- nunosilva800 (6)
- Maumagnaguagno (6)
- kyanagi (6)
- QWYNG (6)
- hogelog (6)
- ydah (4)
- mame (4)
Top Issue Labels
- bug (32)
- enhancement (20)
- rubyconf-hackdays (6)
- good first issue (4)
- documentation (3)
Top Pull Request Labels
- bug (139)
- enhancement (65)
- documentation (43)
- dependencies (22)
- github_actions (8)
- Don't merge (3)
- hacktoberfest-accepted (1)
Package metadata
- Total packages: 3
-
Total downloads:
- rubygems: 346,874,821 total
- Total docker downloads: 8,224,072,450
- Total dependent packages: 155 (may contain duplicates)
- Total dependent repositories: 28,928 (may contain duplicates)
- Total versions: 218
- Total maintainers: 8
gem.coop: irb
Interactive Ruby command-line tool for REPL (Read Eval Print Loop).
- Homepage: https://github.com/ruby/irb
- Documentation: http://www.rubydoc.info/gems/irb/
- Licenses: Ruby,BSD-2-Clause
- Latest release: 1.17.0 (published 22 days ago)
- Last Synced: 2026-03-01T16:31:42.853Z (2 days ago)
- Versions: 78
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 173,421,739 Total
- Docker Downloads: 4,112,036,225
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Docker downloads count: 0.009%
- Average: 0.045%
- Downloads: 0.171%
- Maintainers (8)
rubygems.org: irb
Interactive Ruby command-line tool for REPL (Read Eval Print Loop).
- Homepage: https://github.com/ruby/irb
- Documentation: http://www.rubydoc.info/gems/irb/
- Licenses: Ruby,BSD-2-Clause
- Latest release: 1.17.0 (published 22 days ago)
- Last Synced: 2026-03-01T21:03:00.561Z (2 days ago)
- Versions: 78
- Dependent Packages: 155
- Dependent Repositories: 28,928
- Downloads: 173,453,082 Total
- Docker Downloads: 4,112,036,225
-
Rankings:
- Docker downloads count: 0.013%
- Dependent repos count: 0.209%
- Dependent packages count: 0.229%
- Downloads: 0.591%
- Average: 1.162%
- Forks count: 2.727%
- Stargazers count: 3.202%
- Maintainers (8)
proxy.golang.org: github.com/ruby/irb
- Homepage:
- Documentation: https://pkg.go.dev/github.com/ruby/irb#section-documentation
- Licenses: bsd-2-clause
- Latest release: v1.17.0 (published 22 days ago)
- Last Synced: 2026-02-28T16:01:14.275Z (3 days ago)
- Versions: 62
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Forks count: 2.657%
- Stargazers count: 3.145%
- Average: 6.545%
- Dependent packages count: 9.576%
- Dependent repos count: 10.802%
Dependencies
- rake >= 0 development
- test-unit >= 0 development
- yamatanooroti >= 0.0.6 development
- reline >= 0.3.0
- actions/checkout master composite
- actions/checkout v3 composite
- ruby/setup-ruby v1 composite
- actions/checkout v5 composite
- actions/configure-pages v5 composite
- actions/deploy-pages v4 composite
- actions/upload-pages-artifact v4 composite
- ruby/setup-ruby f26937343756480a8cb3ae1f623b9c8d89ed6984 composite
- actions/checkout ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 composite
- ruby/setup-ruby 13e7a03dc3ac6c3798f4570bfead2aed4d96abfb composite
- rubygems/release-gem 1c162a739e8b4cb21a676e97b087e8268d8fc40b composite
- step-security/harden-runner 95d9a5deda9de15063e7595e9719c11c38c90ae2 composite
- actions/checkout ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 composite
- ruby/setup-ruby v1 composite
Score: 33.930443428841684