Skip to content

Commit

Permalink
Minor doc changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
netzpirat committed Sep 28, 2011
1 parent 81f713a commit ec71eea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions lib/guard.rb
Expand Up @@ -206,7 +206,7 @@ def run_guard_task(task, files = nil)
end
end

# Run the `:run_on_change` task. When the option `watch_all_modifications` is set,
# Run the `:run_on_change` task. When the option `:watch_all_modifications` is set,
# the task is split to run changed paths on {Guard::Guard#run_on_change}, whereas
# deleted paths run on {Guard::Guard#run_on_deletion}.
#
Expand All @@ -232,7 +232,8 @@ def run_on_change_task(files, guard, task)

# Detects the paths that have changed.
#
# Deleted paths are prefixed by an exclamation point, @see Guard::Listener#modified_files
# Deleted paths are prefixed by an exclamation point.
# @see Guard::Listener#modified_files
#
# @param [Array<String>] paths the watched paths
# @return [Array<String>] the changed paths
Expand All @@ -243,7 +244,8 @@ def changed_paths(paths)

# Detects the paths that have been deleted.
#
# Deleted paths are prefixed by an exclamation point, @see Guard::Listener#modified_files
# Deleted paths are prefixed by an exclamation point.
# @see Guard::Listener#modified_files
#
# @param [Array<String>] paths the watched paths
# @return [Array<String>] the deleted paths
Expand Down
3 changes: 2 additions & 1 deletion lib/guard/listener.rb
Expand Up @@ -190,7 +190,8 @@ def relativize_paths?
!!@relativize_paths
end

# populate initial timestamp file hash to watch for deleted or moved files
# Populate initial timestamp file hash to watch for deleted or moved files.
#
def timestamp_files
all_files.each {|path| set_file_timestamp_hash(path, file_timestamp(path)) } if @watch_all_modifications
end
Expand Down

0 comments on commit ec71eea

Please sign in to comment.