ruby/lib/irb/command.rb
Hiroshi SHIBATA 077558ee2b
[Bug #20511] Update reline-0.5.7 (#10848)
* Update reline-0.5.7

* Update irb-1.13.1
2024-05-28 15:54:39 -07:00

23 lines
484 B
Ruby

# frozen_string_literal: true
#
# irb/command.rb - irb command
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
require_relative "command/base"
module IRB # :nodoc:
module Command
@commands = {}
class << self
attr_reader :commands
# Registers a command with the given name.
# Aliasing is intentionally not supported at the moment.
def register(name, command_class)
@commands[name.to_sym] = [command_class, []]
end
end
end
end