Run a Ruby interpreter with the given arguments.
Example:
ruby %{-pe '$_.upcase!' <README}
Source Code
# File rake.rb, line 915 def ruby(*args,&block) options = (Hash === args.last) ? args.pop : {} if args.length > 1 then sh(*([RUBY] + args + [options]), &block) else sh("#{RUBY} #{args.first}", options, &block) end end
<code/>and<pre/>for code samples.