Class: ZK::ForkHook::ForkSubscription
- Inherits:
-
Subscription::Base
- Object
- Subscription::Base
- ZK::ForkHook::ForkSubscription
- Defined in:
- lib/zk/fork_hook.rb
Instance Attribute Summary collapse
-
#hook_type ⇒ Object
readonly
Returns the value of attribute hook_type.
Attributes inherited from Subscription::Base
Instance Method Summary collapse
-
#initialize(hook_type, block) ⇒ ForkSubscription
constructor
A new instance of ForkSubscription.
Methods inherited from Subscription::Base
#unregister, #unregistered?, #unsubscribe
Methods included from Logger
#logger, wrapped_logger, wrapped_logger=
Constructor Details
#initialize(hook_type, block) ⇒ ForkSubscription
Returns a new instance of ForkSubscription.
104 105 106 107 108 |
# File 'lib/zk/fork_hook.rb', line 104 def initialize(hook_type, block) super(ForkHook, block) @hook_type = hook_type end |
Instance Attribute Details
#hook_type ⇒ Object (readonly)
Returns the value of attribute hook_type.
102 103 104 |
# File 'lib/zk/fork_hook.rb', line 102 def hook_type @hook_type end |