On Oct 5, 2005, at 10:21 PM, itsme213 wrote:
>> So.. do you perhaps know if there is a ruby to javascript converter
>> out there ?
> 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/

Smells like a not-small project, depending on how much Ruby you want  
to include. Modules and mixins? You won't be able to use existing JS  
objects with .prototype chains in a simple 1-1 relationship for your  
runtime ruby instances, but instead parse ruby code and manually  
traverse arrays of hierarchies.