Method: Kernel#import_map

Defined in:
lib/modulation/ext.rb

#import_map(path, options = {}, caller_location = caller(CALLER_RANGE).first) ⇒ Hash

Imports all modules in given directory, returning a hash mapping filenames to modules

Parameters:

  • path (String)

    directory path

  • caller_location (String) (defaults to: caller(CALLER_RANGE).first)

    caller location

Returns:

  • (Hash)

    hash mapping filenames to module objects



28
29
30
31
# File 'lib/modulation/ext.rb', line 28

def import_map(path, options = {},
               caller_location = caller(CALLER_RANGE).first)
  Modulation.import_map(path, options, caller_location)
end