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
vote
1 answer

How would I use React-Bootstrap in a Hyperstack component?

I have a basic Hyperstack application and would like to style it. Can I integrate with React-Bootstrap and is that a recommended approach, or should I rather look at other frameworks (e.g. Material UI?) Any pointers to docs or sample code would be…
rzr
  • 48
  • 3
1
vote
1 answer

Hyperstack and MaterialUI Drawer Toggling State is causing the drawer to open and close repeatedly

I am implementing a title bar and menu drawer using MaterialUI in a Hyperstack project. I have two components, a Header component, and a Menu component. The Menu component is the expandable Drawer. I am storing the state in the Header component and…
mwhobrey
  • 65
  • 1
  • 10
1
vote
1 answer

Is there a way to disconnect console messaging from Hyperstack message queue?

In Hyperstack every state change enters a message queue through a websocket mechanism to inform every application client for model/app state changes. So if you update a model from my browser sessions, everyone else connected at the time can see it…
Michail
  • 147
  • 8
1
vote
2 answers

Passing models to components

Using the hyperstack.org framework, how can I reduce the rendering cycles when mutating models that are being rendered? When passing a Model which is being rendered to a Component which mutates that Model, all Components rendering that Model get…
BarrieH
  • 373
  • 3
  • 11
1
vote
2 answers

is it possible to use the gatsby static site generator with reactrb?

So, I'm basically still pretty new to the whole npm/react.js (let alone react.rb) ecosystem, and I'm wondering if it would be possible to use reactrb with the gatsby static site generator. I've been attempting to get opal/reactrb support through…
hayley
  • 11
  • 1
1
vote
1 answer

opal react.rb passing in proc as a param for use as a callback

I can't seem to recall about passing in a proc as a param for a component in react.rb, can someone remind me? Sorry if my question is badly worded, I'm a little tired.
Thermatix
  • 2,757
  • 21
  • 51
1
vote
1 answer

Run Ruby library from JavaScript

I found a sweet library written in Ruby which I would like to use in my JS application. The library is a regular expression -> NFA conversion library and would fit perfectly for my needs. Is there a way to call this ruby library and process the…
voluminat0
  • 866
  • 2
  • 11
  • 21
1
vote
0 answers

Ruby: Running Gosu game from a web browser

So what I want to do is this: User visits www.website.com There is a button called "play game" Gosu game (which I have already written) will launch the window. User can play game. so maybe it'll look like this:
1
vote
1 answer

Trying to get react.rb template to render in opal using opal-jquery, was working now it's not

I admit this is similar to a previous question of mine but it's not quite the same. Since I'm using ajax requests in the end I decided to add opal-jquery to my stack, (unless you know an easier way) and switched to using the Document.ready?…
Thermatix
  • 2,757
  • 21
  • 51
1
vote
1 answer

How writing text onto specific place [Opal]

I need write static web page with simple data. In form i have data from user and in tag
my output How using Opal writing string into specyfic place?