Module: Pry::Config::Memoization

Included in:
Default
Defined in:
lib/pry/config/memoization.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

MEMOIZED_METHODS =
Hash.new {|h,k| h[k] = [] }

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(mod) ⇒ Object



33
34
35
# File 'lib/pry/config/memoization.rb', line 33

def self.included(mod)
  mod.extend(ClassMethods)
end

Instance Method Details

#memoized_methodsArray<Symbol>



41
42
43
# File 'lib/pry/config/memoization.rb', line 41

def memoized_methods
  MEMOIZED_METHODS[self.class]
end