lib/quickbooks/ruby_magic.rb
# Transform all the keys in the hash to CamelCase format.
Transform all the keys in the hash to CamelCase format.
Transform all the keys in the hash to CamelCase format .
def slash_camelize_keys!(specials={})
    cam = slashed.flat
    cam.each_key do |k|
      cam[
        specials.has_key?(k) ? specials[k] : (k.is_a?(Symbol) ? k.to_s.camelize.to_sym : (k+' ').split('/').map {|e| e.camelize}.join('/')[0..-2])
      ] = cam.delete(k)
    end
    cam.slashed
  end
def slash_camelize_keys! ( specials = { } ) cam = slashed . flat cam . each_key do | k | cam [ specials . has_key? ( k ) ? specials [ k ] : ( k . is_a? ( Symbol ) ? k . to_s . camelize . to_sym : ( k + ' ' ) . split ( '/' ) . map { | e | e . camelize } . join ( '/' ) [ 0 .. - 2 ] ) ] = cam . delete ( k ) end cam . slashed end
Transform all the keys in the hash to CamelCase format.
Transform all the keys in the hash to CamelCase format .
specials
<not_specific>