Module: EasyHook

Defined in:
lib/easy-hook.rb

Overview

Contains methods to hook method calls

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

On inclusion, we extend the receiver by the defined class-methods. This is an ruby idiom for defining class methods within a module.



58
59
60
# File 'lib/easy-hook.rb', line 58

def EasyHook.included(base)
  base.extend(ClassMethods)
end