Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/core_ext/object.rb
Class Method Summary collapse
-
.detach_all ⇒ Object
A convenience method for detaching all class instances with detach.
-
.detach_all! ⇒ Object
A convenience method for detaching all class instances with detach!.
Instance Method Summary collapse
-
#_reference_instances(*mods) ⇒ Object
Mass uses this method to derive object references.
-
#_references(*mods) ⇒ Object
A convenience method for Mass.references.
-
#detach(*mods, &block) ⇒ Object
A convenience method for Mass.detach.
-
#detach!(*mods, &block) ⇒ Object
A convenience method for Mass.detach!.
Class Method Details
Instance Method Details
#_reference_instances(*mods) ⇒ Object
Mass uses this method to derive object references. Override this method for increasing performance. In order to override this method, you would probably want to use Mass.references
of a sample instance.
18 19 20 |
# File 'lib/core_ext/object.rb', line 18 def _reference_instances(*mods) Mass.send(:instances_within, *mods) end |
#_references(*mods) ⇒ Object
A convenience method for Mass.references
24 25 26 |
# File 'lib/core_ext/object.rb', line 24 def _references(*mods) Mass.references(self, *mods) end |