What is $LOAD_PATH in Ruby?
1 April 2022 (Updated 4 April 2022)
$LOAD_PATH is a global array in Ruby that lists all the paths that Ruby will search when you use require or load. You can view the $LOAD_PATH for your Ruby installation by inspecting $LOAD_PATH in irb or in a Ruby script.
$LOAD_PATH is similar in concept to the $PATH global in Unix.
Tagged:
Ruby
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment