Questions tagged [opalrb]

Opal is a Ruby to JavaScript source-to-source compiler. It comes packed with the Ruby corelib you know and love. It is both fast as a runtime and small in its footprint.

Opal is a Ruby to JavaScript compiler. It is source-to-source, making it fast as a runtime. Opal includes a compiler (which can be run in any browser), a corelib and runtime implementation. The corelib/runtime is also very small.

Opal is hosted on github, discussed on Gitter, has a Freenode IRC channel at #opal and is on twitter @opalrb.

More documentation can be found in the docs.

92 questions
-1
votes
1 answer

How to write opal library?

I want to write opal library to provide nicer interface to some native javascript I have to use. However, I have no idea where to start. I have some of the stuff wrapped in my current code, but dunno how to make it into separate "module" or what…
graywolf
  • 7,092
  • 7
  • 53
  • 77
-1
votes
1 answer

Can't create variable on base object in 'self.included' hook in Opal

It's as the question title says, I have an included hook in a module: def self.included(base) puts 'included' base.extend API end My API requires certain variables on the object to exists but none of them are being created. I've…
Thermatix
  • 2,757
  • 21
  • 51
1 2 3 4 5 6
7