Module: HasBehaviour

Included in:
ProductCatalogue, ProductCriteria
Defined in:
lib/has_behaviour.rb

Overview

Simple module to provide means of delegating specific behaviours to external objects. Allows the behaviours to be safely specified in the database. Use of constantize can allow for loading of aribtary ruby classes as HasBehaviour::File for instance loads the global file object.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


26
27
28
# File 'lib/has_behaviour.rb', line 26

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