Method: FileUtils#ruby
- Defined in:
- lib/rake/file_utils.rb
#ruby(*args, **options, &block) ⇒ Object
Run a Ruby interpreter with the given arguments.
Example:
ruby %{-pe '$_.upcase!' <README}
98 99 100 101 102 103 104 |
# File 'lib/rake/file_utils.rb', line 98 def ruby(*args, **, &block) if args.length > 1 sh(RUBY, *args, **, &block) else sh("#{RUBY} #{args.first}", **, &block) end end |