Skip to content

noiseunion/indefinite_article

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

indefinite_article

Adds indefinite article methods to String and Symbol so that you can do:

>> 'apple'.indefinite_article
=> 'an'
>> 'banana'.with_indefinite_article
=> 'a banana'

Installation

The gem is hosted at github.com/kenglishhi/indefinite_article. Put the following in your Gemfile

gem 'indefinite_article', '0.1.1', :git => 'git://github.com/kenglishhi/indefinite_article.git'

Notes

This was forked from github.com/rossmeissl/indefinite_article but updated to use Rails 3.0.

Copyright © 2010 Andy Rossmeissl. See LICENSE for details.

About

Indefinite article identification for Ruby strings

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%