|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /opt/alt/ruby27/share/gems/gems/irb-1.2.6/lib/irb/cmd/ |
Upload File : |
# frozen_string_literal: false
#
# change-ws.rb -
# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
# --
#
#
#
require_relative "nop"
require_relative "../ext/workspaces"
# :stopdoc:
module IRB
module ExtendCommand
class Workspaces < Nop
def execute(*obj)
irb_context.workspaces.collect{|ws| ws.main}
end
end
class PushWorkspace < Workspaces
def execute(*obj)
irb_context.push_workspace(*obj)
super
end
end
class PopWorkspace < Workspaces
def execute(*obj)
irb_context.pop_workspace(*obj)
super
end
end
end
end
# :startdoc: