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


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