Re:Opal: Ruby to JavaScript Compiler
by aikah on Friday June 06, 2014 @07:16AM
(#7857188)
My use case was an online IDE where instead of using javascript to code webapps,users would use Ruby to do the same.But since opal doesnt expose window object,it's pretty useless for me. Maybe you have a solution for that,but I just didnt find one.
[ Parent
| on HN ]
Re:Opal: Ruby to JavaScript Compiler
by dragonwriter on Friday June 06, 2014 @09:28AM
(#7857701)
Exposing the window object is a different issue than being a transpired and, in any case, you can access the underlying KS environment in Opal, including fairly simple access to things like the window object.http://opalrb.org/docs/interacting_with_javascript/