Abctools
Collection of utilites for working with String class in Ruby.
Such as in this version:
- get right email
- remove vietnamese accented character to get pretty string with non-accented character
Installation
Add this line to your application's Gemfile:
gem 'abctools'
And then execute:
$ bundle
Or install it yourself as:
$ gem install abctools
Usage
Abctools.insensitive_remove_accent("Hồ Chí Minh")
=> "ho chi minh"
Abctools.sensitive_remove_accent("Hồ Chí Minh")
=> "Ho Chi Minh"
Abctools.right_email(" AwesomeRuby@abc.COM ")
=> "awesomeruby@abc.com"
Abctools.right_email(" AwesomeRuby@noDot ")
=> false
Contributing
- Fork it ( https://github.com/[my-github-username]/abctools/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request