Skip to content

Support for more ruby-like method names #63

@rubyFeedback

Description

@rubyFeedback

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions