new(irb, workspace = nil, input_method = nil, output_method = nil) public

Creates a new IRB context.

The optional input_method argument:

nil

uses stdin or Readline

String

uses a File

other

uses this as InputMethod

Show source
Register or log in to add new notes.