diff options
author | Stan Lo <[email protected]> | 2024-07-16 16:58:08 +0100 |
---|---|---|
committer | git <[email protected]> | 2024-07-16 15:58:15 +0000 |
commit | 4a4e1bf357f5b5f568ead4da0537eb4506e20e5f (patch) | |
tree | f95a378bdff0a5e4b866ea47042cc541504d41eb /lib/irb/command/debug.rb | |
parent | 4fe3082b63a801abe15711ebb907bd66aa58bc35 (diff) |
[ruby/irb] Group class methods under `class << self`
(https://github.com/ruby/irb/pull/981)
https://github.com/ruby/irb/commit/cdaa356df2
Diffstat (limited to 'lib/irb/command/debug.rb')
-rw-r--r-- | lib/irb/command/debug.rb | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/irb/command/debug.rb b/lib/irb/command/debug.rb index 8a091a49ed..3ebb57fe54 100644 --- a/lib/irb/command/debug.rb +++ b/lib/irb/command/debug.rb @@ -58,13 +58,15 @@ module IRB end class DebugCommand < Debug - def self.category - "Debugging" - end + class << self + def category + "Debugging" + end - def self.description - command_name = self.name.split("::").last.downcase - "Start the debugger of debug.gem and run its `#{command_name}` command." + def description + command_name = self.name.split("::").last.downcase + "Start the debugger of debug.gem and run its `#{command_name}` command." + end end end end |