From: Hassan Schroeder Date: 2013-01-09T08:54:46+09:00 Subject: Re: Can I require an external .js file in Ruby On Tue, Jan 8, 2013 at 3:19 PM, Jeremy Bopp 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