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

Bryan Duxbury closed THRIFT-909.
--------------------------------

         Assignee: Michael Stockton
    Fix Version/s: 0.5
                       (was: 0.6)
       Resolution: Fixed

Looks good. Committed.

> 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
>            Assignee: Michael Stockton
>            Priority: Minor
>             Fix For: 0.5
>
>         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