Class: Hanami::CLI::CommandRegistry::LookupResult Private

Inherits:
Object
  • Object
show all
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

Since:

  • 0.1.0

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Since:

  • 0.1.0


157
158
159
160
161
162
# File 'lib/hanami/cli/command_registry.rb', line 157

def initialize(node, arguments, names, found)
  @node      = node
  @arguments = arguments
  @names     = names
  @found     = found
end

Instance Attribute Details

#argumentsObject (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.

Since:

  • 0.1.0


153
154
155
# File 'lib/hanami/cli/command_registry.rb', line 153

def arguments
  @arguments
end

#namesObject (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.

Since:

  • 0.1.0


149
150
151
# File 'lib/hanami/cli/command_registry.rb', line 149

def names
  @names
end

Instance Method Details

#childrenObject

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.

Since:

  • 0.1.0


172
173
174
# File 'lib/hanami/cli/command_registry.rb', line 172

def children
  @node.children
end

#commandObject

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.

Since:

  • 0.1.0


178
179
180
# File 'lib/hanami/cli/command_registry.rb', line 178

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.

Since:

  • 0.1.0


166
167
168
# File 'lib/hanami/cli/command_registry.rb', line 166

def found?
  @found
end