Forum: Ruby ruby to javascript

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3284ef6270038da77b3c2ce79f9a4a27?d=identicon&s=25 unknown (Guest)
on 2007-01-06 19:30
(Received via mailing list)
i've downloaded a demo of rb2js.rb (ruby to javascript) from
<http://po-ru.com/diary/convert-ruby-to-javascript/>

this demo works great.

then i've try to use rb2js.rb to convert a Color class (which has been
tested within ruby) from ruby to javascript, the conversion fails
because of :

rb2js:198:in 'handle': can't perform method dispatche without explicit
receiver (RB2JS::Unhandled)

althought i did mimic, as far as possible, the Paul Battley way of doing
that.

the ruby file i want to convert into javascript is here :

<http://www.yvon-thoraval.com/ruby2js/demo/color.rb>

the output being in :

<http://www.yvon-thoraval.com/ruby2js/demo/color.rb.txt>

in case someone else uses rb2js.rb...
This topic is locked and can not be replied to.