Method: CommandKit::Commands::AutoLoad#files

Defined in:
lib/command_kit/commands/auto_load.rb

#filesArray<String>

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns the files within given directory.

Returns:

  • (Array<String>)

    The paths to the .rb files in the directory.



150
151
152
# File 'lib/command_kit/commands/auto_load.rb', line 150

def files
  Dir.glob(join('*.rb'))
end