Module: TypedParams::Memoize::ClassMethods
- Defined in:
- lib/typed_params/memoize.rb
Instance Method Summary collapse
Instance Method Details
#memoize ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/typed_params/memoize.rb', line 10 def memoize if memoize_queue.include?(self) memoize_queue.clear raise RuntimeError, 'memoize cannot be called more than once in succession' end memoize_queue << self end |