Class: ROM::Memoizable::Memoizer Private

Inherits:
Module
  • Object
show all
Defined in:
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

Instance Method Summary collapse

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.



32
33
34
35
36
# File 'lib/rom/support/memoizable.rb', line 32

def initialize(klass, names)
  @names = names
  @klass = klass
  define_memoizable_names!
end

Instance Attribute Details

#klassObject (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.



28
29
30
# File 'lib/rom/support/memoizable.rb', line 28

def klass
  @klass
end

#namesObject (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/rom/support/memoizable.rb', line 29

def names
  @names
end