Sha256: c40620ae85bf7f02d262b5983d1322dafe64217d6bba86b370245683b5be5da5

Contents?: true

Size: 484 Bytes

Versions: 9

Compression:

Stored size: 484 Bytes

Contents

# 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

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/irb-1.14.0/lib/irb/command.rb
irb-1.14.3 lib/irb/command.rb
irb-1.14.2 lib/irb/command.rb
irb-1.14.1 lib/irb/command.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/irb-1.13.2/lib/irb/command.rb
irb-1.14.0 lib/irb/command.rb
irb-1.13.2 lib/irb/command.rb
irb-1.13.1 lib/irb/command.rb
irb-1.13.0 lib/irb/command.rb