Module: PeaceLove::Doc

Defined in:
lib/peace_love/document.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
8
9
10
# File 'lib/peace_love/document.rb', line 5

def self.included(base)
  base.send :include, AngryHash::Extension
  base.send :include, OidHelper
  base.extend ClassMethods
  base.extend OidHelper
end

Instance Method Details

#__collectionObject



22
23
24
# File 'lib/peace_love/document.rb', line 22

def __collection
  @collection
end

#__collection=(col) ⇒ Object



13
14
15
# File 'lib/peace_love/document.rb', line 13

def __collection=(col)
  @collection = col
end

#__parent_hash=(doc) ⇒ Object



17
18
19
20
# File 'lib/peace_love/document.rb', line 17

def __parent_hash=(doc)
  self.__collection = doc.__collection if doc.respond_to?(:__collection)
  super
end