lib/plezi/common/cache.rb in plezi-0.10.10 vs lib/plezi/common/cache.rb in plezi-0.10.11
- old
+ new
@@ -19,11 +19,11 @@
# Cached attributes
attr_accessor :data, :mtime
# initialize a Cached object
def initialize d = nil, t = Time.now
- @data = t
- @mtime = d
+ @data = d
+ @mtime = t
end
end
# load the file from the cache (if exists) or the file system (if it doesn't)
def load_file filename