I am planning to use a Ruby module to add a function to the String class. http://snippets.aktagon.com/snippets/584-generating-word-n-grams-with-ruby
However, I don't know where to put Ruby modules so that every string object can use this function.
Where do I put modules in Rails?