Module: Norman::Model

Defined in:
lib/norman/model.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/norman/model.rb', line 4

def self.extended(base)
  base.instance_eval do
    @lock            = Mutex.new
    @attribute_names = []
    @key_class       = Class.new(Norman::AbstractKeySet)
    extend  ClassMethods
    include InstanceMethods
    include Comparable
  end
end