Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
piece of code to embed irb into any ruby app without having to bring in all of ruby-debug
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
internal_irb.rb

README.md

Wut?

Just a small chunk of code taken from a blog post at http://jameskilton.com/2009/04/02/embedding-irb-into-your-ruby-application/ (which itself was taken from the ruby-debug gem) to drop into an irb session at any point in a ruby program.

How?

  1. require internal_irb.rb somewhere in your app.
  2. IRB.start_session(binding) in your code will drop into irb immediately.

Huh?

It works on my machine. ¯\(°_o)/¯

Something went wrong with that request. Please try again.