diff options
Diffstat (limited to 'lib/irb/command.rb')
-rw-r--r-- | lib/irb/command.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/irb/command.rb b/lib/irb/command.rb index 19fde56356..68a4b52727 100644 --- a/lib/irb/command.rb +++ b/lib/irb/command.rb @@ -16,13 +16,7 @@ module IRB # :nodoc: # Registers a command with the given name. # Aliasing is intentionally not supported at the moment. def register(name, command_class) - @commands[name] = [command_class, []] - end - - # This API is for IRB's internal use only and may change at any time. - # Please do NOT use it. - def _register_with_aliases(name, command_class, *aliases) - @commands[name] = [command_class, aliases] + @commands[name.to_sym] = [command_class, []] end end end |