diff options
Diffstat (limited to 'lib/irb/cmd/nop.rb')
-rw-r--r-- | lib/irb/cmd/nop.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/irb/cmd/nop.rb b/lib/irb/cmd/nop.rb index 881a736722..280bfe4677 100644 --- a/lib/irb/cmd/nop.rb +++ b/lib/irb/cmd/nop.rb @@ -14,6 +14,17 @@ module IRB module ExtendCommand class Nop + class << self + def category(category = nil) + @category = category if category + @category + end + + def description(description = nil) + @description = description if description + @description + end + end if RUBY_ENGINE == "ruby" && RUBY_VERSION >= "2.7.0" def self.execute(conf, *opts, **kwargs, &block) |