Module: OpenSearch::DSL::Utils
Overview
Generic utility methods
Instance Method Summary collapse
-
#__camelize(string) ⇒ Object
private
Camelize an underscored string.
Instance Method Details
#__camelize(string) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Camelize an underscored string
A lightweight version of ActiveSupport’s ‘camelize`
44 45 46 |
# File 'lib/opensearch/dsl/utils.rb', line 44 def __camelize(string) string.to_s.split('_').map(&:capitalize).join end |