Module: Hanami::CLI::Commands::Command::ClassMethods Private
- Defined in:
- lib/hanami/cli/commands/command.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.
Class level interface
Instance Method Summary collapse
- #requirements ⇒ Object private
-
#requires(*names) ⇒ Object
private
Requires an internal Hanami component.
Instance Method Details
#requirements ⇒ 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.
64 65 66 |
# File 'lib/hanami/cli/commands/command.rb', line 64 def requirements @_requirements end |
#requires(*names) ⇒ 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.
Requires an internal Hanami component
58 59 60 |
# File 'lib/hanami/cli/commands/command.rb', line 58 def requires(*names) requirements.concat(names) end |