Module: Roby::Hooks

Overview

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

Defined Under Namespace

Modules: ClassMethods, InstanceHooks

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/roby/hooks.rb', line 10

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