Module: Autorespawn::Hooks

Includes:
Hooks
Included in:
Autorespawn, Manager
Defined in:
lib/autorespawn/hooks.rb

Overview

Override of the global Hooks behaviour w.r.t. blocks. Blocks are evaluated in their definition context in Autorespawn instead of the default evaluation in the context of the receiver

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/autorespawn/hooks.rb', line 8

def self.included(base)
    base.class_eval do
        extend Uber::InheritableAttr
        extend ClassMethods
        inheritable_attr :_hooks
        self._hooks= HookSet.new
    end
end