On Tue, Jan 8, 2013 at 3:19 PM, Jeremy Bopp <jeremy / bopp.net> wrote:

>> Is there a way to include .js functions within my ruby script?
>
> The Ruby interpreter can only directly run Ruby code.  Javascript is not
> Ruby, obviously, so the only possible solution would be to find a way to
> load a Javascript interpreter

e.g. `gem install johnson`  -- https://github.com/jbarnette/johnson

Note: haven't used this in a long time, so can't vouch for suitability
for whatever particular purpose the OP has in mind.  :-)

-- 
Hassan Schroeder ------------------------ hassan.schroeder / gmail.com
http://about.me/hassanschroeder
twitter: @hassan