class Protobuf::Generators::ServiceGenerator

Public Instance Methods

compile() click to toggle source
# File lib/protobuf/generators/service_generator.rb, line 8
def compile
  run_once(:compile) do
    print_class(descriptor.name, :service) do
      print OptionGenerator.new(descriptor.options, current_indent).to_s if descriptor.options
      descriptor.method.each do |method_descriptor|
        print_method(method_descriptor)
      end
    end
  end
end

Private Instance Methods

print_method(method_descriptor) click to toggle source