Ruby style for accessing public data members of a Java class
------------------------------------------------------------

                 Key: JRUBY-3443
                 URL: http://jira.codehaus.org/browse/JRUBY-3443
             Project: JRuby
          Issue Type: New Feature
          Components: Java Integration
    Affects Versions: JRuby 1.1.6
         Environment: JRuby-1.1.6 on Windows XP.
            Reporter: Chauk-Mean


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.

I'm starting to use JRuby for writing SWT GUI applications and SWT classes make 
use of public data members.
Unfortunately, there is no Ruby style translation for public data members.

layout = GridLayout.new
# verticalSpacing is a public data member
layout.verticalSpacing = 10
# layout.vertical_spacing is not accepted by JRuby

Please consider adding Ruby style for accessing public data members of a Java 
class.
Thanks in advance.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

    http://xircles.codehaus.org/manage_email


Reply via email to