Class: Dry::CLI::CommandRegistry::LookupResult Private

Inherits:
Object
  • Object
show all
Defined in:
lib/dry/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



184
185
186
187
188
189
# File 'lib/dry/cli/command_registry.rb', line 184

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



180
181
182
# File 'lib/dry/cli/command_registry.rb', line 180

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



176
177
178
# File 'lib/dry/cli/command_registry.rb', line 176

def names
  @names
end

Instance Method Details

#after_callbacksObject

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.2.0



217
218
219
# File 'lib/dry/cli/command_registry.rb', line 217

def after_callbacks
  @node.after_callbacks
end

#before_callbacksObject

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.2.0



211
212
213
# File 'lib/dry/cli/command_registry.rb', line 211

def before_callbacks
  @node.before_callbacks
end

#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



199
200
201
# File 'lib/dry/cli/command_registry.rb', line 199

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



205
206
207
# File 'lib/dry/cli/command_registry.rb', line 205

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.

Returns:

  • (Boolean)

Since:

  • 0.1.0



193
194
195
# File 'lib/dry/cli/command_registry.rb', line 193

def found?
  @found
end