THRIFT-909. rb: allow block argument to struct constructor
authorBryan Duxbury <bryanduxbury@apache.org>
Tue, 21 Sep 2010 16:30:58 +0000 (16:30 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Tue, 21 Sep 2010 16:30:58 +0000 (16:30 +0000)
commit6a1fb17a25ce7b52b7c5e396adf86ceb96606d64
treedf7f8cca3980f6da2d22f6151a33c4c51b50b296
parent1237dcb099a068f83f31cc51df428f5c828d0511
THRIFT-909. rb: allow block argument to struct constructor

This patch allows the user to pass a block to generated structs' constructors. The block will receive and instance of the new object.

Patch: Michael Stockton

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@999487 13f79535-47bb-0310-9956-ffa450edef68
lib/rb/lib/thrift/struct.rb
lib/rb/spec/struct_spec.rb