Module: Elasticsearch::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`
35 36 37 |
# File 'lib/elasticsearch/dsl/utils.rb', line 35 def __camelize(string) string.to_s.split('_').map(&:capitalize).join end |