lib/stashify/file/local.rb in stashify-1.0.5 vs lib/stashify/file/local.rb in stashify-2.0.0
- old
+ new
@@ -3,16 +3,11 @@
require "stashify/file"
module Stashify
class File
class Local < Stashify::File
- def initialize(path)
- @path = path
- super(name: ::File.basename(path), contents: nil)
- end
-
def contents
- ::File.read(@path)
+ ::File.read(path)
end
end
end
end