Method: Library::Domain#search

Defined in:
lib/library/domain.rb

#search(path, options = {}) ⇒ Feature, Array

Brute force search looks through all libraries for matching features. This is the same as #find_any, but returns a list of matches rather then the first matching feature found.

Parameters:

  • path (String)

    path name for which to search

  • options (Hash) (defaults to: {})

    Search options.

Options Hash (options):

  • :latest (Boolean)

    Search only the active or most current version of any library.

  • :suffix (Boolean)

    Automatically try standard extensions if pathname has none.

  • :legacy (Boolean)

    Do not match within library’s name directory, eg. ‘lib/foo/*`.

Returns:

  • (Feature, Array)

    Matching feature(s).



84
85
86
# File 'lib/library/domain.rb', line 84

def search(path, options={})
  $LEDGER.search(path, options)
end