Sha256: 16a8ea104ec47bcfaf5fa3fbe12b3f417ab22f673e430652858440011ab266db

Contents?: true

Size: 802 Bytes

Versions: 5

Compression:

Stored size: 802 Bytes

Contents

# frozen_string_literal: false
#
#   nop.rb -
#   	$Release Version: 0.9.6$
#   	$Revision$
#   	by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
# --
#
#
#
module IRB
  # :stopdoc:

  module ExtendCommand
    class Nop

      if RUBY_ENGINE == "ruby" && RUBY_VERSION >= "2.7.0"
        def self.execute(conf, *opts, **kwargs, &block)
          command = new(conf)
          command.execute(*opts, **kwargs, &block)
        end
      else
        def self.execute(conf, *opts, &block)
          command = new(conf)
          command.execute(*opts, &block)
        end
      end

      def initialize(conf)
        @irb_context = conf
      end

      attr_reader :irb_context

      def irb
        @irb_context.irb
      end

      def execute(*opts)
        #nop
      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/nop.rb
irb-1.5.1 lib/irb/cmd/nop.rb
irb-1.5.0 lib/irb/cmd/nop.rb
irb-1.4.3 lib/irb/cmd/nop.rb
irb-1.4.2 lib/irb/cmd/nop.rb