On Tue, Sep 9, 2008 at 2:12 PM, Ola Bini <[EMAIL PROTECTED]> wrote: > Thomas E Enebo wrote: >> >> To get my jmonkeyengine demo working, I had to be able to expose a >> bunch of protected Java fields to be accessible. I ended up creating >> the following methods (currently implemented in Ruby): >> >> field_attr_reader :java_field_name [, :name_to_expose_as] >> field_attr_writer :java_field_name [, :name_to_expose_as] >> field_attr_accessor :java_field_name [, :name_to_expose_as] >> >> This is pretty close to Ruby equivalent syntax and was very useful. >> If the second parm is not provided the actual java field name is used. >> Comments to solicit: >> >> 1. Anyone have a better name to suggest for this? >> > > Why not just > field_reader, field_writer and field_accessor?
good...I like this better. -Tom -- Blog: http://www.bloglines.com/blog/ThomasEEnebo Email: [EMAIL PROTECTED] , [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
