module Spinach::Hookable

The hookable module includes subscription capabilities to the class in which it is included.

Take in account that while most subscription/notification mechanism work at the class level, Hookable defines hooks at the instance level - so they are not the same in all the class instances.

Public Class Methods

included(base) click to toggle source
# File lib/spinach/hookable.rb, line 10
def self.included(base)
  base.class_eval do
    extend ClassMethods
    include InstanceMethods
  end
end