109 words, 1 mins
方便的转换hash key,驼峰和蛇形命名
obj.deep_transform_keys! { |key| key.camelcase }
obj.deep_transform_keys! { |key| key.snake_case }
方便的转换hash key,驼峰和蛇形命名
obj.deep_transform_keys! { |key| key.camelcase }
obj.deep_transform_keys! { |key| key.snake_case }