Class: Sponges::Hook

Inherits:
Object
  • Object
show all
Defined in:
lib/sponges/configuration.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

._after_forkObject

Returns the value of attribute _after_fork.



44
45
46
# File 'lib/sponges/configuration.rb', line 44

def _after_fork
  @_after_fork
end

._on_chldObject

Returns the value of attribute _on_chld.



44
45
46
# File 'lib/sponges/configuration.rb', line 44

def _on_chld
  @_on_chld
end

Class Method Details

.after_forkObject



46
47
48
# File 'lib/sponges/configuration.rb', line 46

def after_fork
  _after_fork.call if _after_fork.respond_to?(:call)
end

.on_chldObject



50
51
52
# File 'lib/sponges/configuration.rb', line 50

def on_chld
  _on_chld.call if _on_chld.respond_to?(:call)
end