method

require_relative

v2_2_9 - Show latest stable - Class: Kernel
require_relative(p1)
public

Ruby tries to load the library named string relative to the requiring file’s path. If the file’s path cannot be determined a LoadError is raised. If a file is loaded true is returned and false otherwise.