Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/choron_support/props/ext/hash.rb

Instance Method Summary collapse

Instance Method Details

#as_camelObject



2
3
4
# File 'lib/choron_support/props/ext/hash.rb', line 2

def as_camel
  self.deep_transform_keys { |key| key.to_s.camelize(:lower).to_sym }
end

#to_camel_jsonObject



6
7
8
# File 'lib/choron_support/props/ext/hash.rb', line 6

def to_camel_json
  as_camel_json.to_json
end