Module: N::Child
- Defined in:
- lib/n/db/mixins.rb
Overview
Child
Include this mixin to make and entity attachable to a parent Entity.
Instance Method Summary collapse
Instance Method Details
#initialize(*args) ⇒ Object
175 176 177 |
# File 'lib/n/db/mixins.rb', line 175 def initialize(*args) super end |
#set_parent(parent) ⇒ Object
179 180 181 |
# File 'lib/n/db/mixins.rb', line 179 def set_parent(parent) @pid = parent.to_i end |