Lots of Ruby code generation improvements

Summary: Submitted by Kevin Clark, Ruby guru from Powerset

Reviewed By: mcslee

Test Plan: He updated the tests in trunk/test/rb/

Notes: The code is now officially "ruby-ish" and idiomatic


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665151 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/parse/t_program.h b/compiler/cpp/src/parse/t_program.h
index f39852d..8b4f59c 100644
--- a/compiler/cpp/src/parse/t_program.h
+++ b/compiler/cpp/src/parse/t_program.h
@@ -145,6 +145,14 @@
     return xsd_namespace_;
   }
 
+  void set_ruby_namespace(std::string ruby_namespace) {
+    ruby_namespace_ = ruby_namespace;
+  }
+  
+  const std::string& get_ruby_namespace() const {
+    return ruby_namespace_;
+  }
+
   void set_perl_namespace(std::string perl_namespace) {
     perl_namespace_ = perl_namespace;
   }
@@ -193,6 +201,9 @@
   // XSD namespace
   std::string xsd_namespace_;
 
+  // Ruby namespace
+  std::string ruby_namespace_;
+
   // Perl namespace
   std::string perl_namespace_;