From: Ryan Davis Date: 2011-01-05T06:11:05+09:00 Subject: Re: ripl - an irb alternative - 0.3.0 released On Jan 4, 2011, at 08:47 , Quintus wrote: > I'm interested. Is it possible to make ripl read from and write to an > arbitrary IO object? Luckily with it only being ~270 lines long, you can easily find what you're looking for: > # When extending this method, ensure your plugin disables readline: > # Readline.config[:readline] = false. > # @return [String, nil] Prints #prompt and returns input given by user > def get_input > print prompt > $stdin.gets.chomp > end