Module: Ripple::EmbeddedDocument::Persistence::ClassMethods

Defined in:
lib/ripple/embedded_document/persistence.rb

Instance Method Summary collapse

Instance Method Details

#embedded_in(parent) ⇒ Object

Creates a method that points to the parent document.



22
23
24
# File 'lib/ripple/embedded_document/persistence.rb', line 22

def embedded_in(parent)
  define_method(parent) { @_parent_document }
end