ruby to javascript

Discussion in 'Ruby' started by Artaban de Médée, Jan 6, 2007.

  1. 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...

    --
    Artaban de Médée
     
    Artaban de Médée, Jan 6, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    235
  2. anne001
    Replies:
    1
    Views:
    584
  3. Phrogz
    Replies:
    4
    Views:
    260
    Austin Ziegler
    Sep 6, 2006
  4. roschler
    Replies:
    0
    Views:
    195
    roschler
    Oct 16, 2006
  5. Nicholas
    Replies:
    3
    Views:
    408
    Ryan Davis
    Jan 28, 2007
Loading...

Share This Page