Rubygem to removing accents
Ruby Shell
Latest commit 29ca9f5 Jul 15, 2014 @lucasas Updating rspec to 3.0
Failed to load latest commit information.
lib
spec
.gitignore
.rspec
.ruby-version
.rvmrc
.travis.yml
Gemfile
Gemfile.lock
README
README.md
Rakefile
accentless-0.1.0.gem
accentless.gemspec

README.md

Accentless

Remove accents from Strings easily, using new Ruby 2.x Refinements.

Status

Build Status

Installation

Add this line to your application's Gemfile:

gem 'accentless'

And then execute:

$ bundle

Or install it yourself as:

$ gem install accentless

Usage

require 'accentless'

class Word
  using Accentless

  def initialize(word)
    @word = word
  end

  def value
    # you can use String#accentless! method which
    # modifies original String
    @word.accentless
  end
end

Word.new("São Paulo").value #=> Sao Paulo

Contributing

You can contribute easily too:

  1. Fork it ( http://github.com/lucasas/accentless/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request