Permalink
Browse files

memoize published date

  • Loading branch information...
1 parent 00b3bfc commit 5dfc9ef740ae717cac1a8cd8639d1ae38de9ce81 @archiloque archiloque committed Jul 9, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/feedzirra/feed_entry_utilities.rb
@@ -1,7 +1,8 @@
module Feedzirra
module FeedEntryUtilities
- def published
- @published || @updated
+
+ def published
+ @published ||= @updated
end
def parse_datetime(string)

0 comments on commit 5dfc9ef

Please sign in to comment.