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.


35
36
37
38
39
# File 'lib/rom/support/memoizable.rb', line 35

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.


31
32
33
# File 'lib/rom/support/memoizable.rb', line 31

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.


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

def names
  @names
end