Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zenizh/inflexion

Inflexion define new methods on the String class to transform names for different purposes.
https://github.com/zenizh/inflexion

Last synced: about 1 month ago
JSON representation

Inflexion define new methods on the String class to transform names for different purposes.

Awesome Lists containing this project

README

        

# Inflexion

[![Build Status](https://travis-ci.org/kami-zh/inflexion.svg)](https://travis-ci.org/kami-zh/inflexion)
[![Gem Version](https://badge.fury.io/rb/inflexion.svg)](http://badge.fury.io/rb/inflexion)

Inflexion define new methods on the String class to transform names for different purposes.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'inflexion'
```

And then execute:

$ bundle

Or install it yourself as:

$ gem install inflexion

## Usage

Once you include `inflextion`, you can use `#pastize`, `#peopleize` and `#progressize` methods.

Examples:

```ruby
'follow'.pastize #=> "followed"
'follow'.peopleize #=> "followers"
'follow'.progressize #=> "following"

'like'.pastize #=> "liked"
'like'.peopleize #=> "likers"
'like'.progressize #=> "liking"
```

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/kami-zh/inflexion.