Introducing the rscript gem

require 'rscript'

raw_args = ['//job:date_format_helper','http://rorbuilder.info/r/datetime.rsf', 'Sun 8 Jun']
code, args = RScript.new.read raw_args
puts eval(code)

#=> 
Sun 8 Jun
%a %e %b

The rscript gem reads embedded Ruby code from an rscript file on a web server or from a local file.

Tags:
Source:
1515hrs.txt
Published:
08-06-2014 15:15