Module: HaveAPI::Hookable

Included in:
Action, Server
Defined in:
lib/haveapi/hooks.rb

Overview

Classes that define hooks must include this module.

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



254
255
256
257
# File 'lib/haveapi/hooks.rb', line 254

def self.included(base)
  base.send(:extend, ClassMethods)
  base.send(:include, InstanceMethods)
end