fxruby
fxruby copied to clipboard
Support for more ruby-like method names
Hello.
For example, to add a tooltext to a button, we may have this:
button.tipText = ' Push Me! '
We do not have:
button.tip_text = ' Push Me! '
Would it be possible to add the latter?
Reasoning:
In ruby we do not use the above C++ style of method names, but instead typically use the downcased variants.
Note that I am not suggesting that Lars does this - I am mostly asking whether it would be ok to add these aliases to the code-base of fxruby, e. g. whether Lars would be ok with that.
We can work around the above, I assume, if we add custom modifications ("monkey patching" or "duck patching"), but then we'd have to distribute that code as well, which is why I think it would be better to have this available in fxruby as-is already. (With monkey patching we can easily add an alias, but distributing this then becomes a bit harder, since we may have to distribute this to other users.)
Sorry for my late answer! But yes, I'm open to add such aliases.