lib/hx.rb in hx-0.26.0 vs lib/hx.rb in hx-0.26.1
- old
+ new
@@ -630,9 +630,13 @@
tempfile.unlink
end
nil
end
+def self.last_update_time(*entries)
+ entries.map { |e| e['updated'] || e['created'] }.compact.max
+end
+
class LazyContent
def initialize(&block)
raise ArgumentError, "No block given" unless block
@lock = Mutex.new
@content = nil