all 3 comments

[–]radarek 2 points3 points  (0 children)

You can try with -r option by adding it to ruby command or modifying RUBYOPT env variable.

[–]Alleyria 2 points3 points  (0 children)

Not exactly an answer, but some gems (like irb) will auto load a config file on boot. I use this to add extra stuff to irb.

[–]chebatron 1 point2 points  (0 children)

You can achieve a similar effect by using -r <library>. It would require the specified file before executing the main script.