Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/zenizh/inflexion
- Owner: zenizh
- Created: 2016-06-06T03:11:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-06-06T03:21:29.000Z (over 8 years ago)
- Last Synced: 2024-10-31T13:25:21.532Z (about 2 months ago)
- Language: Ruby
- Homepage: https://rubygems.org/gems/inflexion
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.