Skip to content
Snippets Groups Projects
Commit dedae79c authored by murgatroid99's avatar murgatroid99
Browse files

Finished ruby generator change

parent 6a45e934
No related branches found
No related tags found
No related merge requests found
...@@ -98,8 +98,8 @@ void PrintService(const ServiceDescriptor *service, const grpc::string &package, ...@@ -98,8 +98,8 @@ void PrintService(const ServiceDescriptor *service, const grpc::string &package,
out->Print("self.marshal_class_method = :encode\n"); out->Print("self.marshal_class_method = :encode\n");
out->Print("self.unmarshal_class_method = :decode\n"); out->Print("self.unmarshal_class_method = :decode\n");
std::map<grpc::string, grpc::string> pkg_vars = std::map<grpc::string, grpc::string> pkg_vars =
ListToDict({"service_full_namename", service->full_name()}); ListToDict({"service_full_name", service->full_name()});
out->Print(pkg_vars, "self.service_name = '$pkg.name$.$service.name$'\n"); out->Print(pkg_vars, "self.service_name = '$service_full_name$'\n");
out->Print("\n"); out->Print("\n");
for (int i = 0; i < service->method_count(); ++i) { for (int i = 0; i < service->method_count(); ++i) {
PrintMethod(service->method(i), package, out); PrintMethod(service->method(i), package, out);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment