# File lib/guard/listener.rb, line 60 def initialize(directory = Dir.pwd, options = {}) @sha1_checksums_hash = {} @file_timestamp_hash = {} @changed_files = [] @paused = false @directory = directory.to_s options = options.inject({}) { |h,(k,v)| h[k.to_sym] = v; h } @relativize_paths = options.fetch(:relativize_paths, true) @watch_all_modifications = options.fetch(:watch_all_modifications, false) @ignore_paths = DEFAULT_IGNORE_PATHS @ignore_paths |= options[:ignore_paths] if options[:ignore_paths] update_last_event start_reactor end