lib/olaf/extensions/hash.rb
def camelize(first_letter = :lower)
    hash = {}
    self.each do |k,v|
      symbol = k.is_a?(Symbol)
      new_key = k.to_s.camelize(first_letter)
      hash[symbol ? new_key.to_sym : new_key] = v.is_a?(Hash) ? v.camelize(first_letter) : v
    end
    hash
  end
# Converts hash keys to camel case or snake case
Converts hash keys to camel case or snake case
Converts hash keys to camel case or snake case
def camelize(first_letter = :lower)
    hash = {}
    self.each do |k,v|
      symbol = k.is_a?(Symbol)
      new_key = k.to_s.camelize(first_letter)
      hash[symbol ? new_key.to_sym : new_key] = v.is_a?(Hash) ? v.camelize(first_letter) : v
    end
    hash
  end
def camelize ( first_letter = :lower ) hash = { } self . each do | k , v | symbol = k . is_a? ( Symbol ) new_key = k . to_s . camelize ( first_letter ) hash [ symbol ? new_key . to_sym : new_key ] = v . is_a? ( Hash ) ? v . camelize ( first_letter ) : v end hash end
Converts hash keys to camel case or snake case
Converts hash keys to camel case or snake case
first_letter