Hi there,
so I ported Memoizable into my app,
but I need a way to spec that certain methods have been memoized.

Is it a bad idea to add a :memoized_methods attribute to any memoized
class / object
so;

  class Abberation
    memoize :some_method
  end

will allow me to spec;

  Abberation.memoized_methods.should include(:some_method)

I'd prefer this rather than spec-ing

Abberation.instance_methods.should include("_unmemoized_some_method")

(I still don't get why it's not just an
"alias_method_chain :some_method, :memoization")

MrJ
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to