[ 
https://issues.apache.org/jira/browse/THRIFT-909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Stockton updated THRIFT-909:
------------------------------------

    Attachment: thrift-909-v1.patch

> allow block argument to struct constructor
> ------------------------------------------
>
>                 Key: THRIFT-909
>                 URL: https://issues.apache.org/jira/browse/THRIFT-909
>             Project: Thrift
>          Issue Type: New Feature
>          Components: Ruby - Library
>            Reporter: Michael Stockton
>            Priority: Minor
>             Fix For: 0.6
>
>         Attachments: thrift-909-v1.patch
>
>
> Struct constructors should accept a block argument. This makes initialization 
> more terse.
> struct = Foo.new do |f|
>   f.some_field = 'monkey'
> end

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to