Method: Library::Domain#find_any

Defined in:
lib/library/domain.rb

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

Brute force variation of ‘#find` looks through all libraries for a matching features. This serves as the fallback method if `#find` comes up empty.

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).



58
59
60
# File 'lib/library/domain.rb', line 58

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