Class: Hanami::CLI::CommandRegistry::LookupResult Private
- Inherits:
-
Object
- Object
- Hanami::CLI::CommandRegistry::LookupResult
- Defined in:
- lib/hanami/cli/command_registry.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Result of a registry lookup
Instance Attribute Summary collapse
- #arguments ⇒ Object readonly private
- #names ⇒ Object readonly private
Instance Method Summary collapse
- #after_callbacks ⇒ Object private
- #before_callbacks ⇒ Object private
- #children ⇒ Object private
- #command ⇒ Object private
- #found? ⇒ Boolean private
-
#initialize(node, arguments, names, found) ⇒ LookupResult
constructor
private
A new instance of LookupResult.
Constructor Details
#initialize(node, arguments, names, found) ⇒ LookupResult
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.
Returns a new instance of LookupResult.
174 175 176 177 178 179 |
# File 'lib/hanami/cli/command_registry.rb', line 174 def initialize(node, arguments, names, found) @node = node @arguments = arguments @names = names @found = found end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
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.
170 171 172 |
# File 'lib/hanami/cli/command_registry.rb', line 170 def arguments @arguments end |
#names ⇒ Object (readonly)
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.
166 167 168 |
# File 'lib/hanami/cli/command_registry.rb', line 166 def names @names end |
Instance Method Details
#after_callbacks ⇒ 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.
207 208 209 |
# File 'lib/hanami/cli/command_registry.rb', line 207 def after_callbacks @node.after_callbacks end |
#before_callbacks ⇒ 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.
201 202 203 |
# File 'lib/hanami/cli/command_registry.rb', line 201 def before_callbacks @node.before_callbacks end |
#children ⇒ 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.
189 190 191 |
# File 'lib/hanami/cli/command_registry.rb', line 189 def children @node.children end |
#command ⇒ 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.
195 196 197 |
# File 'lib/hanami/cli/command_registry.rb', line 195 def command @node.command end |
#found? ⇒ Boolean
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.
183 184 185 |
# File 'lib/hanami/cli/command_registry.rb', line 183 def found? @found end |