require relative

 require_relative allows you to "load a file that is relative to the file containing the require_relative statement". With require , ./ indicates a path that is relative to your current working directory. I think it's more important to note that require str will always search through directories in $LOAD_PATH.08-Sept-2010

Comments

Popular posts from this blog

Rails 7 Features :: Comparison with Rails 6 and Rails 5