lib/amazon_product_advertising_api/support.rb
# Converts strings from under_score format to CamelCase
Converts strings from under_score format to CamelCase
Converts strings from under_score format to CamelCase
def camelize(first_letter_in_uppercase = true)
        if first_letter_in_uppercase
          self.to_s.gsub(/\/(.?)/) { "::" + $1.upcase }.gsub(/(^|_)(.)/) { $2.upcase }
        else
          self.first + camelize(self)[1..-1]
        end
      end
def camelize ( first_letter_in_uppercase = true ) if first_letter_in_uppercase self . to_s . gsub ( / \/ (.?) / ) { "::" + $1 . upcase } . gsub ( / (^|_)(.) / ) { $2 . upcase } else self . first + camelize ( self ) [ 1 .. - 1 ] end end
Converts strings from under_score format to CamelCase
Converts strings from under_score format to CamelCase
first_letter_in_uppercase
<not_specific>