qbantek/freshdesk_apiclient

View on GitHub
lib/core_extensions/string/camelize.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true
module StringExtensions
  unless String.new.respond_to?(:camelize)
    refine String do
      def camelize
        split(/[^a-z0-9]/i).map(&:capitalize).join
      end
    end
  end
end