lib/frenetic/concerns/briefly_memoizable.rb in frenetic-0.0.20.alpha.3 vs lib/frenetic/concerns/briefly_memoizable.rb in frenetic-0.0.20.alpha.4

- old
+ new

@@ -21,9 +21,13 @@ def #{symbol}(*args) # def mime_type(*args) #{memoized_ivar} = nil if #{age_ivar} && Time.now > #{age_ivar} # @mime_type = nil if @mime_type_age && Time.now > @mime_type_age # #{memoized_ivar} ||= #{original_method}(*args) # @mime_type ||= _unmemoized_mime_type(*args) end # end + + def reload_#{symbol}! # def reload_mime_type! + #{memoized_ivar} = nil # @mime_type = nil + end # end EOS end end end \ No newline at end of file