Module: Ambry::Model

Defined in:
lib/ambry/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/ambry/model.rb', line 4

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