Load User-written Script into Ruby

Posted on Aug 25, 2012 in Computer Science

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

By default the current working directoly is not in the search path of Ruby. To load a user-written script named "script.rb" into Ruby, you can use the command require './script.rb'.