module IRB::ExtendCommand

Attributes

commands[R]

Public Class Methods

_register_with_aliases(name, command_class, *aliases) click to toggle source

This API is for IRB’s internal use only and may change at any time. Please do NOT use it.

# File lib/irb/command.rb, line 24
def _register_with_aliases(name, command_class, *aliases)
  @commands[name] = [command_class, aliases]
end
register(name, command_class) click to toggle source

Registers a command with the given name. Aliasing is intentionally not supported at the moment.

# File lib/irb/command.rb, line 18
def register(name, command_class)
  @commands[name] = [command_class, []]
end