# File basiclibrary.rb, line 430 def require_relative( *paths ) path_match = Regexp.new( "^.+#{File::SEPARATOR}" ) paths.each{ |path| file_path = caller[2] && caller[2].match( path_match ) full_path = file_path && file_path[0] || '' require full_path + path } end