samedi 27 juin 2015

What does the single period in `require "./file_name.rb"` do?

In lines like:

require "./hello.rb"

What does the single period do? I know that using 2 periods is going back a directory from current location.

Also, is there a difference in the following:

require_relative "../file.rb"

require "../file.rb"

Aucun commentaire:

Enregistrer un commentaire