lib/freshdesk_apiclient/utils/camelizable.rb in freshdesk_apiclient-0.1.4 vs lib/freshdesk_apiclient/utils/camelizable.rb in freshdesk_apiclient-0.1.5

- old
+ new

@@ -1,14 +1,14 @@ # frozen_string_literal: true module FreshdeskApiclient module Utils module Camelizable - def camelize(term) + def self.camelize(term) string = term.to_s format string end - def format(string) + def self.format(string) string = string.sub(/^[a-z\d]*/) { $&.capitalize } string.gsub!(%r{(?:_|(/))([a-z\d]*)}) { $2.capitalize } string end end