lib/stashify/file.rb in stashify-2.1.1 vs lib/stashify/file.rb in stashify-3.0.0
- old
+ new
@@ -13,9 +13,17 @@
@path = path
@name = name || ::File.basename(path)
@contents = contents
end
+ def write(contents)
+ @contents = contents
+ end
+
+ def delete
+ @contents = nil
+ end
+
def ==(other)
name == other.name && contents == other.contents
end
end
end