Replies: 2 comments
-
@esb Yeah I like that idea, started noodling around with an update. What's a good config option I wonder? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Would it be useful to allow the prefix to be defined? The default would be "_", but it could be set to "" or false to disable the prefix entirely. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
From my understanding,
@@
class variables are a little bit restricted.I'm not interested in private variables, so I use
underscored_private: true
with ES2022.If I define
@@variable = nil
inMyClass
, I getMyClass._variable = null
It would be nice to have
this.constructor._variable
generated instead, but I guess that's not important.The real problem for me is that I'm interfacing with base and sub-classes that are native JS and they use specific static variable names that I can't control. For example, in this instance, the static variable would be defined as
static variable = null
, so I've got an obvious mismatch as ruby2js will generate the name with a_
prefix.Is there anyway that this could be configured?
Beta Was this translation helpful? Give feedback.
All reactions