Class: ZK::ForkHook::ForkSubscription

Inherits:
Subscription::Base show all
Defined in:
lib/zk/fork_hook.rb

Instance Attribute Summary collapse

Attributes inherited from Subscription::Base

#callable, #parent

Instance Method Summary collapse

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_typeObject (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