ruby_generator.h

This section contains reference documentation for working with protocol buffer classes in C++.

#include <google/protobuf/compiler/ruby/ruby_generator.h>
namespace google::protobuf::compiler::ruby

Generates Ruby code for a given .proto file.

Classes in this file

CodeGenerator implementation for generated Ruby protocol buffer classes.

class Generator: public CodeGenerator

#include <google/protobuf/compiler/ruby/ruby_generator.h>
namespace google::protobuf::compiler::ruby

CodeGenerator implementation for generated Ruby protocol buffer classes.

If you create your own protocol compiler binary and you want it to support Ruby output, you can do so by registering an instance of this CodeGenerator with the CommandLineInterface in your main() function.

Members