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
158 159 160 161 |
# File 'lib/veritas/support/immutable.rb', line 158 def included(mod) Immutable.included(mod) self end |
#memoize(*methods) ⇒ self
Memoize a list of methods
174 175 176 177 |
# File 'lib/veritas/support/immutable.rb', line 174 def memoize(*methods) methods.each { |method| memoize_method(method) } self end |