instance method
Gem::CommandManager#find_command_possibilities
find_command_possibilities(cmd_name)
lib/rubygems/command_manager.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/command_manager.rb, line 217
def find_command_possibilities(cmd_name)
len = cmd_name.length
found = command_names.select {|name| cmd_name == name[0, len] }
exact = found.find {|name| name == cmd_name }
exact ? [exact] : found
end
No documentation available
See also
#find_command
#instance
#find_alias_command
#invoke_command
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0