Module: Dry::Core::Memoizable
- Defined in:
- lib/dry/core/memoizable.rb
Defined Under Namespace
Modules: ClassInterface Classes: Memoizer
Constant Summary collapse
- MEMOIZED_HASH =
{}.freeze
- PARAM_PLACEHOLDERS =
%i[* ** &].freeze
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
48 49 50 51 52 53 54 55 56 |
# File 'lib/dry/core/memoizable.rb', line 48 def self.included(klass) super if klass <= Object klass.extend(ClassInterface::Object) else klass.extend(ClassInterface::BasicObject) end end |