33 package com.google.protobuf.jruby;
35 import org.jruby.Ruby;
36 import org.jruby.RubyModule;
37 import org.jruby.anno.JRubyMethod;
38 import org.jruby.anno.JRubyModule;
39 import org.jruby.runtime.ThreadContext;
40 import org.jruby.runtime.builtin.IRubyObject;
42 @JRubyModule(
name =
"Protobuf")
46 RubyModule mGoogle = runtime.getModule(
"Google");
47 RubyModule mProtobuf = mGoogle.defineModuleUnder(
"Protobuf");
58 @JRubyMethod(
name =
"deep_copy", meta =
true)
59 public static IRubyObject deepCopy(ThreadContext context, IRubyObject
self, IRubyObject
message) {