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
128 129 130 131 |
# File 'lib/veritas/support/immutable.rb', line 128 def included(mod) Immutable.included(mod) self end |
#memoize(*methods) ⇒ self
Memoize a list of methods
144 145 146 147 |
# File 'lib/veritas/support/immutable.rb', line 144 def memoize(*methods) methods.each { |method| memoize_method(method) } self end |