File: //usr/local/rvm/gems/default/doc/activesupport-6.1.4.1/ri/String/singularize-i.ri
U:RDoc::AnyMethod[iI"singularize:ETI"String#singularize;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"QThe reverse of +pluralize+, returns the singular form of a word in a string.;To:RDoc::Markup::BlankLine o;
; [ I"6If the optional parameter +locale+ is specified, ;TI"?the word will be singularized as a word of that language. ;TI"8By default, this parameter is set to <tt>:en</tt>. ;TI"PYou must define your own inflection rules for languages other than English.;T@o:RDoc::Markup::Verbatim; [I"0'posts'.singularize # => "post"
;TI"3'octopi'.singularize # => "octopus"
;TI"1'sheep'.singularize # => "sheep"
;TI"0'word'.singularize # => "word"
;TI"<'the blue mailmen'.singularize # => "the blue mailman"
;TI"8'CamelOctopi'.singularize # => "CamelOctopus"
;TI"/'leyes'.singularize(:es) # => "ley"
;T:@format0o;
; [I".See ActiveSupport::Inflector.singularize.;T:
@fileI"6lib/active_support/core_ext/string/inflections.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(locale = :en);T@!FI"String;TcRDoc::NormalClass00