Method: CommandMapper::Command.has_subcommand?

Defined in:
lib/command_mapper/command.rb

.has_subcommand?(name) ⇒ Boolean

Determines if a subcommand with the given name has been defined.

Since:

  • 0.2.0



551
552
553
# File 'lib/command_mapper/command.rb', line 551

def self.has_subcommand?(name)
  subcommands.has_key?(name)
end