Module: N::ParentClass

Defined in:
lib/n/db/mixins.rb

Overview

ParentClass

Extends Child, allows multiple class parents.

Instance Method Summary collapse

Instance Method Details

#set_parent(parent, klass = nil) ⇒ Object



203
204
205
206
207
208
209
210
211
# File 'lib/n/db/mixins.rb', line 203

def set_parent(parent, klass = nil)
	if parent.is_a?(Fixnum)
		@pid = parent
		@pclass = klass.to_s() if klass
	else
		@pid = parent.oid
		@pclass = parent.class.to_s()
	end
end