Skip to content

Commit

Permalink
Fix more typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Maher4Ever committed Apr 19, 2012
1 parent b11bd77 commit 48395e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/listen/directory_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def filtering_patterns
# @example Ignore some paths
# ignore ".git", ".svn"
#
# @param [Regexp] regexp a pattren for ignoring paths
# @param [Regexp] regexp a pattern for ignoring paths
#
def ignore(*regexps)
@ignoring_patterns.merge(regexps)
Expand All @@ -84,7 +84,7 @@ def ignore(*regexps)
# @example Filter some files
# ignore /\.txt$/, /.*\.zip/
#
# @param [Regexp] regexp a pattren for filtering paths
# @param [Regexp] regexp a pattern for filtering paths
#
# @return [Listen::Listener] the listener itself
#
Expand All @@ -100,7 +100,7 @@ def filter(*regexps)
#
def ignored?(path)
path = relative_to_base(path)
@ignoring_patterns.any? { |pattren| pattren =~ path }
@ignoring_patterns.any? { |pattern| pattern =~ path }
end

# Returns whether a path should be filtered or not.
Expand All @@ -114,7 +114,7 @@ def filtered?(path)
return true if @filtering_patterns.empty?

path = relative_to_base(path)
@filtering_patterns.any? { |pattren| pattren =~ path }
@filtering_patterns.any? { |pattern| pattern =~ path }
end

# Finds the paths that should be stored and adds them
Expand Down

0 comments on commit 48395e5

Please sign in to comment.