Class: Dry::Core::Memoizable::Memoizer Private
- Inherits:
-
Module
- Object
- Module
- Dry::Core::Memoizable::Memoizer
- Defined in:
- lib/dry/core/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.
33 34 35 36 37 |
# File 'lib/dry/core/memoizable.rb', line 33 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.
29 30 31 |
# File 'lib/dry/core/memoizable.rb', line 29 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.
30 31 32 |
# File 'lib/dry/core/memoizable.rb', line 30 def names @names end |