method

new

ruby latest stable - Class: IRB::Context
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