Method: Module::Cluster::InstanceController::HookController::HookControllerInterface#highest_index

Defined in:
lib/module/cluster/instance_controller/hook_controller/hook_controller_interface.rb

#highest_index(include_or_extend) ⇒ Integer

Determine the highest index for provided module(s).

Parameters:

  • include_or_extend

    :include, :extend or :include_and_extend

  • module

    Modules for which highest-index is being determined.

Returns:

  • (Integer)

    Highest index.



741
742
743
744
745
# File 'lib/module/cluster/instance_controller/hook_controller/hook_controller_interface.rb', line 741

def highest_index( include_or_extend, *modules )

  return indexes( include_or_extend, *modules )[ -1 ]
  
end