in core/ruby2.5Action/rackapp/init.rb [95:100]
def valid_code?(path) system("ruby -e 'RubyVM::InstructionSequence.compile_file(\"#{path}\")' 2> #{ERR} 1> #{OUT}") rescue false end