aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rake/file_list.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rake/file_list.rb')
-rw-r--r--lib/rake/file_list.rb14
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/rake/file_list.rb b/lib/rake/file_list.rb
index f32b8c62a4..b01dbbb341 100644
--- a/lib/rake/file_list.rb
+++ b/lib/rake/file_list.rb
@@ -2,10 +2,10 @@ require 'rake/cloneable'
require 'rake/file_utils_ext'
require 'rake/pathmap'
-######################################################################
+
module Rake
- # #########################################################################
+ ##
# A FileList is essentially an array with a few helper methods defined to
# make file manipulation a bit easier.
#
@@ -156,7 +156,6 @@ module Rake
self
end
-
# Clear all the exclude patterns so that we exclude nothing.
def clear_exclude
@exclude_patterns = []
@@ -164,7 +163,7 @@ module Rake
self
end
- # Define equality.
+ # A FileList is equal through array equality.
def ==(array)
to_ary == array
end
@@ -208,7 +207,7 @@ module Rake
self
end
- def resolve_add(fn)
+ def resolve_add(fn) # :nodoc:
case fn
when %r{[*?\[\{]}
add_matching(fn)
@@ -218,7 +217,7 @@ module Rake
end
private :resolve_add
- def resolve_exclude
+ def resolve_exclude # :nodoc:
reject! { |fn| excluded_from_list?(fn) }
self
end
@@ -276,7 +275,6 @@ module Rake
collect { |fn| fn.ext(newext) }
end
-
# Grep each of the files in the filelist using the given pattern. If a
# block is given, call the block on each matching line, passing the file
# name, line number, and the matching line of text. If no block is given,
@@ -377,7 +375,7 @@ module Rake
proc { |fn| fn =~ /(^|[\/\\])core$/ && ! File.directory?(fn) }
]
- def import(array)
+ def import(array) # :nodoc:
@items = array
self
end