From: itsme213 Date: 2005-10-06T13:21:48+09:00 Subject: Re: object.toJavascript? "zimba" wrote in message news:4344221D.5010001@gmail.com... > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello ruby-talk, > > I have already looked in different corners of the Internet and found a > javascript.toRuby converter [1]. > why said both language are pretty similar [2]. > > So.. do you perhaps know if there is a ruby to javascript converter > out there ? > > If you want to know why I need this, well... I'm doing a lot of stuff > that's duplicated under ruby and javascript. DRY, you know.. :-p > JSON is nice for that, but it isn't enough since I also need to > replicate methods. Something like this could be really useful. You'd need to have at least some parse-tree representation of the Ruby code. http://rubyforge.org/projects/parsetree/