public
Description: PLEASE CHECK http://github.com/lifo/docrails/wikis
Homepage: http://weblog.rubyonrails.org/2008/5/2/help-improve-rails-documentation-on-git-branch
Clone URL: git://github.com/lifo/docrails.git
Add documentation for Inflector.inflections
wycats (author)
Mon May 12 23:41:43 -0700 2008
lifo (committer)
Tue May 13 05:50:41 -0700 2008
commit  9546ee299952c86329c4854f9b3776382c0575ff
tree    e35998a4a3d4a2e9c793af96977e161b9bbd3c3d
parent  654e77597ba1e5b64a2be2e5e21cd542aafcfbb0
...
92
93
94
 
 
 
 
 
 
 
95
96
97
...
92
93
94
95
96
97
98
99
100
101
102
103
104
0
@@ -92,6 +92,13 @@ module Inflector
0
 
0
   extend self
0
 
0
+ # Yields a singleton instance of Inflector::Inflections so you can specify additional
0
+ # inflector rules.
0
+ #
0
+ # Example:
0
+ # Inflector.inflections do |inflect|
0
+ # inflect.uncountable "rails"
0
+ # end
0
   def inflections
0
     if block_given?
0
       yield Inflections.instance

Comments

    No one has commented yet.