Sha256: 31efef137414219beff544ea8fcb44ef607dee5c1fec47bc3648a5dacd06e4ce
Contents?: true
Size: 373 Bytes
Versions: 2
Compression:
Stored size: 373 Bytes
Contents
# frozen_string_literal: true module KeepUp # Base class for file filters class FileFilter def self.apply_to_file(file, dependency) contents = File.read(file) updated_contents = apply(contents, dependency) if contents == updated_contents false else File.write file, updated_contents true end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
keep_up-0.11.0 | lib/keep_up/file_filter.rb |
keep_up-0.10.2 | lib/keep_up/file_filter.rb |