The project is in a healthy, maintained state
This is minimalistic inflector. It allows Pair Kit to be an independent library
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.0, >= 0.0.1
~> 3.10, >= 3.10.1
~> 13.0
~> 3.4
~> 3.4, >= 3.4.2
~> 1.64
~> 0.19
 Project Readme

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'