Method: PluginRegistry::Plugin.resolve_next

Defined in:
lib/utils/plugin_registry.rb

.resolve_next(target, parent) ⇒ Plugin

When a plugin’s resolve doesn’t lead to the final state, it can use this method to hand it back for another resolver to handle.

Parameters:

  • the (Any)

    current target that needs resolving

  • an (Plugin)

    instance of the calling resolver

Returns:

  • (Plugin)

    instance if it can be resolved, nil otherwise



84
85
86
87
88
# File 'lib/utils/plugin_registry.rb', line 84

def self.resolve_next(target, parent)
  res = plugin_registry.resolve(target)
  res.parent = parent
  res
end