A summary of data about the Ruby ecosystem.

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 6 hours ago
JSON representation

Repository metadata

interactive Ruby

README.md

IRB

Gem Version
Static Badge
build

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 the debug command to start an irb:rdbg session with access to all debug.gem commands.
  • Use the RUBY_DEBUG_IRB_CONSOLE=1 environment variable to make debug.gem use 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


GitHub Events

Total
Last Year

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 Email 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:


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

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/ruby/irb

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

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

Gemfile rubygems
  • rake >= 0 development
  • test-unit >= 0 development
  • yamatanooroti >= 0.0.6 development
irb.gemspec rubygems
  • reline >= 0.3.0
.github/workflows/test.yml actions
  • actions/checkout master composite
  • actions/checkout v3 composite
  • ruby/setup-ruby v1 composite
.github/workflows/gh-pages.yml actions
  • 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
.github/workflows/push_gem.yml actions
  • actions/checkout ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 composite
  • ruby/setup-ruby 13e7a03dc3ac6c3798f4570bfead2aed4d96abfb composite
  • rubygems/release-gem 1c162a739e8b4cb21a676e97b087e8268d8fc40b composite
  • step-security/harden-runner 95d9a5deda9de15063e7595e9719c11c38c90ae2 composite
.github/workflows/truffle-ruby-test.yml actions
  • actions/checkout ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 composite
  • ruby/setup-ruby v1 composite

Score: 33.930443428841684