Module: Veritas::Immutable::ModuleMethods
- Defined in:
- lib/veritas/support/immutable.rb
Overview
Methods mixed in to immutable modules
Instance Method Summary collapse
-
#included(mod) ⇒ self
private
Hook called when module is included.
-
#memoize(*methods) ⇒ self
Memoize a list of methods.
Instance Method Details
#included(mod) ⇒ self
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.
Hook called when module is included
130 131 132 133 |
# File 'lib/veritas/support/immutable.rb', line 130 def included(mod) Immutable.included(mod) self end |
#memoize(*methods) ⇒ self
Memoize a list of methods
146 147 148 149 |
# File 'lib/veritas/support/immutable.rb', line 146 def memoize(*methods) methods.each { |method| memoize_method(method) } self end |