From: Gilles Filippini Date: 2002-06-15T03:13:39+09:00 Subject: Re: Embedding irb Joel VanderWerf wrote: > > Gilles Filippini wrote: > > > > Hi, > > > > It must be a basic question, but I didn't find any answer: > > How to embed an IRB session into a ruby app ? > > This is one way to do it for a command line app (i.e., without changing > stdin/out). It works well, but I do wish IRB made this a bit easier. The > obj argument to start_session will be self when the session starts up. > > require 'irb' > require 'irb/completion' > [snip] Thanks a lot. It's just what I was looking for. In the meantime I've found this: http://www.ruby-talk.org/blade/31020 | require "irb/main" | IRB.start How is it different from your solution? Thanks for your help. _gilles.