Skip to content

Generate module name: snake_case to CamelCase in case of package name. #403

Open
@manhdaovan

Description

@manhdaovan

For instance, i have:

# a.proto file
package abc_def;
message ghi {}

Then, when generating ruby source, i got:

# a.pb.rb
module Abc_def
  class Ghi {}
end

The package named abc_def should be generated to AbcDef module, instead of Abc_def, shouldn't it?

I checked this issue: #81 (comment), but the case of the package name was not mentioned there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions