Object
The default list of directories that get ignored.
The default list of files that get ignored.
# File lib/listen/silencer.rb, line 47 def configure(options) @only_patterns = options[:only] ? Array(options[:only]) : nil @ignore_patterns = _init_ignores(options[:ignore], options[:ignore!]) end
TODO: switch type and path places - and verify
# File lib/listen/silencer.rb, line 56 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 ignore_patterns.any? { |pattern| path =~ pattern } end
Generated with the Darkfish Rdoc Generator 2.