# frozen_string_literal: true module Codat class Camelizer # Converts this_is_my_string to thisIsMyString and returns it as a symbol. def self.transform(underscore_string) parts = underscore_string.to_s.split('_') rest = parts[1..].map(&:capitalize) rest.unshift(parts[0]).join.to_sym end end end