How can I check if Ruby code is parsable, without executing it?
Basically, I want the functionality of ruby -c code.rb, without actually writing to a temporary file. Note that there is the problem of properly escaping the code if one is to use ruby -ce 'some_ruby_code'.
Ideally, there should be something in the standard lib, but I couldn't find it.