1.6
No release in over 3 years
Low commit activity in last 3 years
Extraction of the key_transform abilities of ActiveModelSerializers
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies
 Project Readme

case_transform

Extraction of the key_transform abilities of ActiveModelSerializers

Gem Version Build Status Code Climate Test Coverage Dependency Status

Install

gem 'case_transform'

or

gem install case_transform

And for faster performance, checkout Case Transform with Native Extensions

Usage

require 'case_transform'

CaseTransform.camel_lower(value)

value can be any of Array, Hash, Symbol, or String. Any other object type will just be returned.

Transforms

  Description
camel PascalCase
camel_lower camelCase
dash dash-case
underscore under_score
unaltered pass through