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
-
#memoized_methods ⇒ Array<Symbol>
Returns the names of methods that have been defined by ClassMethods#def_memoized.
Class Method Details
.included(mod) ⇒ Object
35 36 37 |
# File 'lib/pry/config/memoization.rb', line 35 def self.included(mod) mod.extend(ClassMethods) end |
Instance Method Details
#memoized_methods ⇒ Array<Symbol>
Returns the names of methods that have been defined by Pry::Config::Memoization::ClassMethods#def_memoized.
43 44 45 |
# File 'lib/pry/config/memoization.rb', line 43 def memoized_methods MEMOIZED_METHODS[self.class] end |