lib/stashify/file/local.rb in stashify-3.2.0 vs lib/stashify/file/local.rb in stashify-3.2.1
- old
+ new
@@ -2,9 +2,13 @@
require "stashify/file"
module Stashify
class File
+ # An implementation for interacting with local files. The
+ # constructor needs no information on top of what is included
+ # {Stashify::File#initialize}, although it's important to note
+ # that setting the contents parameter will not do anything.
class Local < Stashify::File
def contents
::File.read(path)
end