Module: Ripple::EmbeddedDocument::Persistence::ClassMethods
- Defined in:
- lib/ripple/embedded_document/persistence.rb
Instance Method Summary collapse
-
#embedded_in(parent) ⇒ Object
Creates a method that points to the parent document.
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 (parent) define_method(parent) { @_parent_document } end |