method

new

ruby latest stable - Class: IRB::WorkSpace
new(*main)
public

Creates a new workspace.

set self to main if specified, otherwise inherit main from TOPLEVEL_BINDING.