Module: AssLauncher::Cmd::Abstract::SubCommand::Declaration Private
- Included in:
- AssLauncher::Cmd::Abstract::SubCommand, Main
- Defined in:
- lib/ass_launcher/cmd.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
:nodoc:
Instance Method Summary collapse
- #declare_subcommands ⇒ Object private
- #subcommand_(klass) ⇒ Object private
Instance Method Details
#declare_subcommands ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
97 98 99 100 101 |
# File 'lib/ass_launcher/cmd.rb', line 97 def declare_subcommands self::SubCommands.constants.each do |c| subcommand_ self::SubCommands.const_get(c) end end |
#subcommand_(klass) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
93 94 95 |
# File 'lib/ass_launcher/cmd.rb', line 93 def subcommand_(klass) subcommand(klass.command_name, klass., klass) end |