class IRB::Context

def pop_workspace

Also, see #push_workspace.

it, or +nil+ if the current workspace stack is empty.
Removes the last element from the current #workspaces stack and returns
def pop_workspace
  if workspaces.empty?
    print "workspace stack empty\n"
    return
  end
  @workspace = workspaces.pop
end