class IRB::Context

def irb_level

Size of the current WorkSpace stack
def irb_level
  workspace_stack.size
end