Sha256: 2962259b86e0bdd0a532beffc8451e4400612fcf69a723197538f1c10d648089

Contents?: true

Size: 603 Bytes

Versions: 4

Compression:

Stored size: 603 Bytes

Contents

#
#   change-ws.rb -
#   	$Release Version: 0.9.6$
#   	$Revision$
#   	by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
# --
#
#
#

require "irb/cmd/nop.rb"
require "irb/ext/workspaces.rb"

# :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:

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubysl-irb-2.1.1 lib/irb/cmd/pushws.rb
rubysl-irb-2.1.0 lib/irb/cmd/pushws.rb
rubysl-irb-2.0.4 lib/irb/cmd/pushws.rb
rubysl-irb-2.0.3 lib/irb/cmd/pushws.rb