Parent

Methods

Included Modules

Listen::Silencer

Constants

DEFAULT_IGNORED_DIRECTORIES

The default list of directories that get ignored.

DEFAULT_IGNORED_EXTENSIONS

The default list of files that get ignored.

Attributes

options[RW]
patterns[RW]

Public Class Methods

new(options = {}) click to toggle source
# File lib/listen/silencer.rb, line 13
def initialize(options = {})
  @options = options
  _init_patterns
end

Public Instance Methods

silenced?(path) click to toggle source
# File lib/listen/silencer.rb, line 18
def silenced?(path)
  patterns.any? { |pattern| path.to_s =~ pattern }
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.