Sha256: e299fa9d492e9451ea79c25c7c3e8853068646229a2b69e5d466877605cefa38

Contents?: true

Size: 543 Bytes

Versions: 5

Compression:

Stored size: 543 Bytes

Contents

# 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/change-ws"

module IRB
  # :stopdoc:

  module ExtendCommand

    class CurrentWorkingWorkspace < Nop
      def execute(*obj)
        irb_context.main
      end
    end

    class ChangeWorkspace < Nop
      def execute(*obj)
        irb_context.change_workspace(*obj)
        irb_context.main
      end
    end
  end

  # :startdoc:
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/irb-1.4.2/lib/irb/cmd/chws.rb
irb-1.5.1 lib/irb/cmd/chws.rb
irb-1.5.0 lib/irb/cmd/chws.rb
irb-1.4.3 lib/irb/cmd/chws.rb
irb-1.4.2 lib/irb/cmd/chws.rb