Skip to content
Extraction of the key_transform abilities of ActiveModelSerializers
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.codeclimate.yml
.gitignore
.rubocop.yml
.travis.yml
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
case_transform.gemspec

README.md

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
You can’t perform that action at this time.