Module: ImageDiff::Writer
- Included in:
- Snapshot
- Defined in:
- lib/image_diff/writer/writer.rb
Overview
Write Snapshots to File
Instance Method Summary collapse
Instance Method Details
#path_and_filename ⇒ Object
6 7 8 |
# File 'lib/image_diff/writer/writer.rb', line 6 def path_and_filename File.join(fullpath, filename) end |
#write ⇒ Object
10 11 12 13 14 |
# File 'lib/image_diff/writer/writer.rb', line 10 def write File.open(path_and_filename, 'w') do |file| file.write(content) end end |