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.

add

add(*filenames) Instance Public methods Alias for:

2015-04-30 06:02:54
include

include(*filenames) Instance Public methods Add file names defined by glob patterns

2015-04-30 06:14:49
==

==(array) Instance Public methods Define equality.

2015-04-30 05:59:59