class Creditsafe::CamelizerLower
Public Class Methods
transform(underscore_string)
click to toggle source
Converts this_is_my_string to thisIsMyString and returns it as a symbol.
# File lib/creditsafe/camelizer_lower.rb, line 6 def self.transform(underscore_string) parts = underscore_string.to_s.split('_') rest = parts[1..-1].map(&:capitalize) rest.unshift(parts[0]).join.to_sym end