Class: Gluer::RegistrationHook
- Inherits:
-
Object
- Object
- Gluer::RegistrationHook
- Defined in:
- lib/gluer/registration_hook.rb
Instance Attribute Summary collapse
-
#hook ⇒ Object
readonly
Returns the value of attribute hook.
Instance Method Summary collapse
- #call(registry, context, *args, &block) ⇒ Object
-
#initialize(hook) ⇒ RegistrationHook
constructor
A new instance of RegistrationHook.
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
#hook ⇒ Object (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 |