Module: TeguGears::Memoize
- Defined in:
- lib/tegu_gears/memoize.rb
Overview
If I can get used to using a struct or a single input variable, I can do things this way. Otherwise, I need to get deeper into the meta programming to work around how to call things in a signatureless environment. Not an easy nut to crack, btw.
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
45 46 47 48 |
# File 'lib/tegu_gears/memoize.rb', line 45 def self.included(base) base.send(:extend, ClassMethods) base.send(:include, InstanceMethods) end |