Type:
Class
Constants:
ARRAY_METHODS : (Array.instance_methods - Object.instance_methods).map { |n| n.to_s }

List of array methods (that are not in Object) that need to be delegated.

MUST_DEFINE : %w[to_a inspect <=>]

List of additional methods that must be delegated.

MUST_NOT_DEFINE : %w[to_a to_ary partition *]

List of methods that should not be delegated here (we define special versions of them explicitly below).

SPECIAL_RETURN : %w[ map collect sort sort_by select find_all reject grep compact flatten uniq values_at + - & | ]

List of delegated methods that return new array values which need wrapping.

DELEGATING_METHODS : (ARRAY_METHODS + MUST_DEFINE - MUST_NOT_DEFINE).collect{ |s| s.to_s }.sort.uniq

######################################################################### A FileList is essentially an array with a few helper methods defined to make file manipulation a bit easier.

FileLists are lazy. When given a list of glob patterns for possible files to be included in the file list, instead of searching the file structures to find the files, a FileList holds the pattern for latter use.

This allows us to define a number of FileList to match any number of files, but only search out the actual files when then FileList itself is actually used. The key is that the first time an element of the FileList/Array is requested, the pending patterns are resolved into a real list of file names.

to_a

to_a() Instance Public methods Return the internal array object.

2015-04-30 06:28:48
new

new(*patterns) Class Public methods Create a file list from the globbable patterns

2015-04-30 05:48:03
to_ary

to_ary() Instance Public methods Return the internal array object.

2015-04-30 06:34:27
kind_of?

kind_of?(klass) Instance Public methods Alias for:

2015-04-30 06:21:27
exclude

exclude(*patterns, &block) Instance Public methods Register a list of file

2015-04-30 06:13:00
resolve

resolve() Instance Public methods Resolve all the pending adds now.

2015-04-30 06:23:46
resolve_add

resolve_add(fn) Instance Public methods

2015-04-30 06:24:50
is_a?

is_a?(klass) Instance Public methods Lie about our class.

2015-04-30 06:16:02
*

*(other) Instance Public methods Redefine * to return either a string or a new

2015-04-30 05:54:50
add

add(*filenames) Instance Public methods Alias for:

2015-04-30 06:02:54