lib/epubber/services/persistance.rb in epubber-0.0.4 vs lib/epubber/services/persistance.rb in epubber-0.1.0
- old
+ new
@@ -5,10 +5,10 @@
@workspace = workspace
end
# Persist a file into the working directory with the spcified contents.
# The file argument is the relative path to the new file, eg: test/chapters/file.xhtml
- def persist(file: file, content: content)
+ def persist(file:, content:)
create_path_for file
write file, content
end
# Remove the working directory, thus cleaning the file system