rb: Implement type-checking in Thrift::Struct.new and field accessors
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669015 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/rb/benchmark/gen-rb/BenchmarkService.rb b/lib/rb/benchmark/gen-rb/BenchmarkService.rb
index 0370df0..ff4b10a 100644
--- a/lib/rb/benchmark/gen-rb/BenchmarkService.rb
+++ b/lib/rb/benchmark/gen-rb/BenchmarkService.rb
@@ -46,7 +46,7 @@
class Fibonacci_args
include Thrift::Struct
- attr_accessor :n
+ Thrift::Struct.field_accessor self, :n
FIELDS = {
1 => {:type => Thrift::Types::BYTE, :name => 'n'}
}
@@ -54,7 +54,7 @@
class Fibonacci_result
include Thrift::Struct
- attr_accessor :success
+ Thrift::Struct.field_accessor self, :success
FIELDS = {
0 => {:type => Thrift::Types::I32, :name => 'success'}
}