In Ruby, I have been told that when doing
require "some_file"
Ruby will look for the file in certain places.
I know that it looks for some_file.rb, but where does it look for it by default?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It depends on your platform, and how Ruby was compiled, so there is no “the” answer to this. You can find out by running:
Generally, though, you have the standard, site, and vendor Ruby library paths, including an arch, version, and general directory under each.