Class: Gluer::RegistrationHook

Inherits:
Object
  • Object
show all
Defined in:
lib/gluer/registration_hook.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hook) ⇒ RegistrationHook

Returns a new instance of RegistrationHook.



5
6
7
# File 'lib/gluer/registration_hook.rb', line 5

def initialize(hook)
  @hook = hook
end

Instance Attribute Details

#hookObject (readonly)

Returns the value of attribute hook.



3
4
5
# File 'lib/gluer/registration_hook.rb', line 3

def hook
  @hook
end

Instance Method Details

#call(registry, context, *args, &block) ⇒ Object



9
10
11
# File 'lib/gluer/registration_hook.rb', line 9

def call(registry, context, *args, &block)
  hook.call(registry, context, *args, &block)
end