If you have no confidence that "memoize :foo" does its job. How can
you have confidence in Foo.memoized_methods? For all you know its
lying to you as well.
If you think you need these silly DSL assertion tests, just grep your
source for extra "confidence".
File.open("foo.rb").read.grep(/memoize :foo/)
memoization *is* an implementation detail. The helper should not be
treated any different than
def foo
@foo ||= 1 + 1
end
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---