Forum: Ruby Re: RubyJS - Convert 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.
Baf83fa62a7481a08c40353795e11f44?d=identicon&s=25 Michael Neumann (Guest)
on 2007-01-15 21:11
(Received via mailing list)
Une BĂ©vue wrote:

> ../bin/../lib/rubyjs/method_generator.rb:1040:in `method_missing': Not
> implemented (RuntimeError)
> [...]
> from ../bin/rubyjs_gen:82

Ah, that seems to be a different problem. Can I see your "Ruby/JS" code?
You probably use a Ruby construct which is not yet supported ("case" for
example).

Regards,

  Michael
672d693d2b8d408648f664b93d84e8e9?d=identicon&s=25 unknown (Guest)
on 2007-01-16 10:50
(Received via mailing list)
Michael Neumann <mneumann@ntecs.de> wrote:

> > I got the same error with that writing :
> > ../bin/../lib/rubyjs/method_generator.rb:1040:in `method_missing': Not
> > implemented (RuntimeError)
> > [...]
> > from ../bin/rubyjs_gen:82
>
> Ah, that seems to be a different problem. Can I see your "Ruby/JS" code?
> You probably use a Ruby construct which is not yet supported ("case" for
> example).

not at all, as i said, i've just simplified your HelloWorld class but
add the `document.getEllementById...` and change yours p(something) to
self.puts(something) here it is :

<http://www.yvon-thoraval.com/ruby2js/ntecs.de/hg-p...
essai.rb>

the parent folder contains all of this test (essai in french).
This topic is locked and can not be replied to.