Forum: JRuby Ruby style for Java class data members

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Chauk-Mean P. (Guest)
on 2009-02-23 15:29
(Received via mailing list)
Hi,

I initially posted this thread from Ruby-Forum but this doesn't appear
in
the JRuby mailing list.
So I apologize for any duplicate of this thread.

I'm starting to use JRuby for writing SWT GUI applications.

Currently, JRuby translates methods following the 'beans-convention':
 x.getSomething()            # becomes   x.something
 x.setSomething(newValue)    # becomes   x.something = new_value
 x.isSomething()             # becomes   x.something?

This is really great.

Unfortunately, there is no such translation for public data members and
SWT classes make use of such public data members :

layout = GridLayout.new
layout.verticalSpacing = 10
# layout.vertical_spacing is not accepted by JRuby

Is there some plan to support Ruby style for Java class data members ?

Thanks in advance.

Chauk-Mean.
--
View this message in context:
http://www.nabble.com/Ruby-style-for-Java-class-da...
Sent from the JRuby - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
This topic is locked and can not be replied to.