class Listen::Silencer
Public Instance Methods
Source
# File lib/middleman-core/sources/source_watcher.rb, line 11 def silenced?(relative_path, _type) path = relative_path.to_s # if only_patterns && type == :file # return true unless only_patterns.any? { |pattern| path =~ pattern } # end return !only_patterns.any? { |pattern| path =~ pattern } if only_patterns ignore_patterns.any? { |pattern| path =~ pattern } end
TODO: switch type and path places - and verify