| Server IP : 50.21.180.56 / Your IP : 216.73.216.139 Web Server : Apache System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux User : ws67922704 ( 67922704) PHP Version : 8.5.13 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /kunden/proc/thread-self/root/proc/self/root/lib/ruby/3.3.0/irb/ |
Upload File : |
# 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