Module: TeguGears::Memoize::ClassMethods
- Defined in:
- lib/tegu_gears/memoize.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args, &block) ⇒ Object
12 13 14 |
# File 'lib/tegu_gears/memoize.rb', line 12 def method_missing(sym, *args, &block) instance.send(sym, *args, &block) end |
Instance Method Details
#instance ⇒ Object
8 9 10 |
# File 'lib/tegu_gears/memoize.rb', line 8 def instance @inst ||= new end |