Skip to content

Commit a7301a8

Browse files
committed
[API] Generator: CamelCase the names of classes
1 parent cd438d0 commit a7301a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticsearch-api/utils/thor/templates/method.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module Elasticsearch
88
<%- end %>
99
<%= ' '*(@namespace_depth) %>module API
1010
<%- @module_namespace.each_with_index do |name, i| -%>
11-
<%= ' '*i %>module <%= name.capitalize %>
11+
<%= ' '*i %>module <%= name.split("_").map(&:capitalize).join %>
1212
<%- end -%>
1313
<%= ' '*(@namespace_depth+2) %>module Actions
1414
<%= ERB.new(File.new("./thor/templates/_documentation_top.erb").read, trim_mode: '-').result(binding) -%>

0 commit comments

Comments
 (0)