Ruby 4.1 リファレンスマニュアル

instance method Gem::CommandManager#command_names

command_names -> ArrayRuby 1.9.3 から[permalink][rdoc][edit]

登録されているコマンド名の配列を返します。