module Sunspot::Util
Public Class Methods
method_case(string_or_symbol)
click to toggle source
# File lib/sunspot_suggest/plugin.rb, line 11 def method_case(string_or_symbol) string = string_or_symbol.to_s first = true string.split('_').map! { |word| word = first ? word : word.capitalize; first = false; word }.join end