Class: ROM::Memoizable::Memoizer Private
- Inherits:
-
Module
- Object
- Module
- ROM::Memoizable::Memoizer
- Defined in:
- core/lib/rom/support/memoizable.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #klass ⇒ Object readonly private
- #names ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(klass, names) ⇒ Memoizer
constructor
private
A new instance of Memoizer.
Constructor Details
#initialize(klass, names) ⇒ Memoizer
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.
Returns a new instance of Memoizer.
35 36 37 38 39 |
# File 'core/lib/rom/support/memoizable.rb', line 35 def initialize(klass, names) @names = names @klass = klass define_memoizable_names! end |
Instance Attribute Details
#klass ⇒ Object (readonly)
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.
31 32 33 |
# File 'core/lib/rom/support/memoizable.rb', line 31 def klass @klass end |
#names ⇒ Object (readonly)
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.
32 33 34 |
# File 'core/lib/rom/support/memoizable.rb', line 32 def names @names end |