Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > ruby to javascript

Thread Tools

ruby to javascript

Artaban de Médée
Posts: n/a
i've downloaded a demo of rb2js.rb (ruby to javascript) from

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

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


the output being in :


in case someone else uses rb2js.rb...

Artaban de Médée
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ruby extension (C++) on OS X [ruby 1.8.2] and Google-Sketchup [ruby 1.8.5] Nicholas Ruby 3 01-28-2007 01:48 AM
The Ruby Edge - Digg for Ruby and Ruby On Rails roschler Ruby 0 10-15-2006 11:35 PM
ruby-talk, comp.lang.ruby, ruby-talk-google Phrogz Ruby 4 09-06-2006 06:43 PM
#!/usr/bin/ruby , #!/usr/bin/ruby -w , #!/usr/bin/ruby -T?, #!/usr/bin/ruby -T1... anne001 Ruby 1 04-23-2006 03:02 PM
[ANN] ruby-freedb, ruby-serialport, ruby-mp3info moved to Rubyforge Ruby 0 08-31-2003 11:57 PM