Module: ROM::Memoizable::ClassInterface Private
- Defined in:
- lib/rom/support/memoizable.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #memoize(*names) ⇒ Object private
- #new ⇒ Object private
Instance Method Details
#memoize(*names) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 |
# File 'lib/rom/support/memoizable.rb', line 8 def memoize(*names) prepend(Memoizer.new(self, names)) end |
#new ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 13 14 15 16 |
# File 'lib/rom/support/memoizable.rb', line 12 def new(*) obj = super obj.instance_variable_set(:'@__memoized__', MEMOIZED_HASH.dup) obj end |