Ruby to javascript

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 B. 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…