THRIFT-526. rb: Generated Ruby enums have no good way to get the names back out once...
authorBryan Duxbury <bryanduxbury@apache.org>
Wed, 24 Jun 2009 17:55:53 +0000 (17:55 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Wed, 24 Jun 2009 17:55:53 +0000 (17:55 +0000)
commit6fcaf84287d746c59f3ba126521fce3138bace12
tree37d4dac07c540a71286aa6c4d07da17671f8421c
parent3d6babc05c011896d1be0adac980853280020376
THRIFT-526. rb: Generated Ruby enums have no good way to get the names back out once you have a number.

enums generated in Ruby will now have a static map of enum values to names.

Patch by Adam Coffman (with slight modifications).

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@788098 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/generate/t_rb_generator.cc
test/rb/generation/test_enum.rb