class SbrfMerchant::Utils::String::ToCamelCase

Public Instance Methods

call(str) click to toggle source
# File lib/sbrf_merchant/utils/string/to_camel_case.rb, line 7
def call(str)
  str.split('_').inject('') do |buffer, e|
    buffer + (buffer.empty? ? e : e.capitalize)
  end
end