I've got everything working from my command line so I can run ruby myfile
and it works. But when I try to run it from within sublime I get
undefined method `require_relative' for main:Object
Anyone know what is missing in my sublime setup? I am using OS X and has rvm installed.
Alternatively, you could just use 'require' and it should work just fine. I think 'require_relative' is only available for ruby 1.9+
It's probably because sublime runs 1.8.7 version of ruby. You could change it. Here is how.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With