class Pod::HooksManager::Hook

Represents a single registered hook.

Attributes

block[R]

@return [Proc]

The block.
name[R]

@return [String]

The name of the hook.
plugin_name[R]

@return [String]

The name of the plugin that registered the hook.

Public Class Methods

new(name, plugin_name, block) click to toggle source

Initialize a new instance

@param [String] name @see {#name}.

@param [String] plugin_name @see {#plugin_name}.

@param [Proc] block @see {#block}.

# File lib/cocoapods/hooks_manager.rb, line 45
def initialize(name, plugin_name, block)
  raise ArgumentError, 'Missing name' unless name
  raise ArgumentError, 'Missing plugin_name' unless plugin_name
  raise ArgumentError, 'Missing block' unless block

  @name = name
  @plugin_name = plugin_name
  @block = block
end