module OpenSearch::DSL::Utils

Generic utility methods

Public Instance Methods

__camelize(string) click to toggle source

Camelize an underscored string

A lightweight version of ActiveSupport’s ‘camelize`

@example

__camelize('query_string')
# => 'QueryString'

@api private

# File lib/opensearch/dsl/utils.rb, line 44
def __camelize(string)
  string.to_s.split('_').map(&:capitalize).join
end