diff options
Diffstat (limited to 'lib/irb/cmd/nop.rb')
-rw-r--r-- | lib/irb/cmd/nop.rb | 49 |
1 files changed, 3 insertions, 46 deletions
diff --git a/lib/irb/cmd/nop.rb b/lib/irb/cmd/nop.rb index 881a736722..9d2e3c4d47 100644 --- a/lib/irb/cmd/nop.rb +++ b/lib/irb/cmd/nop.rb @@ -1,47 +1,4 @@ -# frozen_string_literal: false -# -# nop.rb - -# $Release Version: 0.9.6$ -# $Revision$ -# by Keiju ISHITSUKA(keiju@ruby-lang.org) -# -# -- -# -# -# -module IRB - # :stopdoc: +# frozen_string_literal: true - 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 +# This file is just a placeholder for backward-compatibility. +# Please require 'irb' and inherit your command from `IRB::Command::Base` instead. |