PairKit::Miniflector
This is minimalistic inflector. It allows Pair Kit to be an independent library
Usage
In your gemfile
gem 'pair-kit-miniflector'
In your code
require 'pair_kit/miniflector'
Example
PairKit::Miniflector.camel_case('Hell World') # => 'helloWorld'
PairKit::Miniflector.kebab_case('Hell World') # => 'hello-world'
PairKit::Miniflector.pascal_case('Hell World') # => 'HelloWorld'
PairKit::Miniflector.snake_case('Hell World') # => 'hello_world'
PairKit::Miniflector.screaming_snake_case('Hell World') # => 'HELLO_WORLD'
PairKit::Miniflector.screaming_kebab_case('Hell World') # => 'HELLO-WORLD'