Module: Mongoo::Embedded::CoreMixin::InstanceMethods
- Defined in:
- lib/mongoo/embedded/core_mixin.rb
Overview
ClassMethods
Instance Method Summary collapse
- #embedded_array_proxy(attrib, klass) ⇒ Object
- #embedded_doc(attrib, klass) ⇒ Object
- #embedded_hash_proxy(attrib, klass) ⇒ Object
Instance Method Details
#embedded_array_proxy(attrib, klass) ⇒ Object
14 15 16 |
# File 'lib/mongoo/embedded/core_mixin.rb', line 14 def (attrib, klass) Mongoo::Embedded::ArrayProxy.new(self, attrib, klass) end |
#embedded_doc(attrib, klass) ⇒ Object
18 19 20 |
# File 'lib/mongoo/embedded/core_mixin.rb', line 18 def (attrib, klass) klass.new(self, attrib) end |