lib/imw/compressed_files.rb in imw-0.2.5 vs lib/imw/compressed_files.rb in imw-0.2.6

- old
+ new

@@ -69,9 +69,16 @@ program = compression_settings[:decompression_program] || compression_settings[:program] FileUtils.cd(dirname) { IMW.system(program, compression_settings[:decompress], path) } IMW.open(decompressed_path) end + # Compressed files should not return snippets. + # + # @return [nil] + def snippet + nil + end + # Decompress this file in its present directory, overwriting any # existing files while keeping the original compressed file. # # FIXME The implementation is a little stupid as the file is # needlessly copied.