class IRB::Irb
def suspend_workspace(workspace)
Used by the irb command +irb_load+, see IRB@IRB+Sessions for more
Context#workspace.
Evaluates the given block using the given +workspace+ as the
def suspend_workspace(workspace) @context.workspace, back_workspace = workspace, @context.workspace begin yield back_workspace ensure @context.workspace = back_workspace end end