diff options
Diffstat (limited to 'lib/irb/cmd/nop.rb')
-rw-r--r-- | lib/irb/cmd/nop.rb | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/lib/irb/cmd/nop.rb b/lib/irb/cmd/nop.rb index 2e112d1705..fc6231f0a7 100644 --- a/lib/irb/cmd/nop.rb +++ b/lib/irb/cmd/nop.rb @@ -30,20 +30,11 @@ module IRB end end - if RUBY_VERSION >= "2.7.0" - def self.execute(conf, *opts, **kwargs, &block) - command = new(conf) - command.execute(*opts, **kwargs, &block) - rescue CommandArgumentError => e - puts e.message - end - else - def self.execute(conf, *opts, &block) - command = new(conf) - command.execute(*opts, &block) - rescue CommandArgumentError => e - puts e.message - end + def self.execute(conf, *opts, **kwargs, &block) + command = new(conf) + command.execute(*opts, **kwargs, &block) + rescue CommandArgumentError => e + puts e.message end def initialize(conf) |