Method: Library::Domain#glob

Defined in:
lib/library/domain.rb

#glob(match, options = {}) ⇒ Array

TODO:

Should this return list of Feature objects instead of file paths?

Search for all matching library files that match the given pattern. This could be of useful for plugin loader.

Parameters:

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

    Glob matching options.

Options Hash (options):

  • :latest (Boolean)

    Search only activated libraries or the most recent version of a given library.

Returns:

  • (Array)

    Matching file paths.



103
104
105
# File 'lib/library/domain.rb', line 103

def glob(match, options={})
  $LEDGER.glob(match, options)
end