class Dry::Inflector

def internal_camelize(input, upper)

Other tags:
    Api: - private

Other tags:
    Since: - 0.1.3
def internal_camelize(input, upper)
  input = input.to_s.dup
  input.sub!(/^[a-z\d]*/) { |match| inflections.acronyms.apply_to(match, capitalize: upper) }
  input.gsub!(%r{(?:[_-]|(/))([a-z\d]*)}i) do
    m1 = Regexp.last_match(1)
    m2 = Regexp.last_match(2)
    "#{m1}#{inflections.acronyms.apply_to(m2)}"
  end
  input.gsub!("/", "::")
  input
end