On Tue, Sep 9, 2008 at 8:33 PM, Logan Barnett
<[EMAIL PROTECTED]> wrote:
> On Sep 8, 2008, at 2:06 PM, Thomas E Enebo wrote:
>>
>> 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]
>>
>
> Could field_accessor and friends accept hash key/values for an exposed name,
> and just allow you to one-line a bunch of fields you want exposed (like the
> attr versions)?
>
> field_accessor :java_foo => :ruby_foo
> field_accessor :foo, :bar, :bazz
> field_accessor :foo, :bar, :bazz, :javaQux => :ruby_qux

This also looks quite reasonable to me....good idea.  I kept thinking
this needs to be either a hash or a list.  The fact that you can mix
or match between hash and symbol makes this syntax work for me.

-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


Reply via email to