SyntaxFix
Write A Post
Hire A Developer
Questions
As for the path relative to the current executing script, since Ruby 2.0 you can also use
__dir__
So this is basically the same as
File.dirname(__FILE__)