Method: Object#ruby_exe
- Defined in:
- lib/mspec/helpers/ruby_exe.rb
#ruby_exe(code) ⇒ Object
87 88 89 90 91 92 93 |
# File 'lib/mspec/helpers/ruby_exe.rb', line 87 def ruby_exe(code) if File.exists?(code) and File.executable?(code) `#{RUBY_EXE} #{ENV['RUBY_FLAGS']} #{code}` else `#{RUBY_EXE} #{ENV['RUBY_FLAGS']} -e #{code.inspect}` end end |