File: //usr/local/rvm/gems/ruby-3.0.2/doc/activesupport-6.1.4.1/ri/ActiveSupport/Inflector/humanize-i.ri
U:RDoc::AnyMethod[iI"
humanize:ETI"&ActiveSupport::Inflector#humanize;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"7Tweaks an attribute name for display to end users.;To:RDoc::Markup::BlankLine o;
; [I"2Specifically, performs these transformations:;T@o:RDoc::Markup::List:
@type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o;
; [I"4Applies human inflection rules to the argument.;To;;0; [o;
; [I")Deletes leading underscores, if any.;To;;0; [o;
; [I"'Removes a "_id" suffix if present.;To;;0; [o;
; [I".Replaces underscores with spaces, if any.;To;;0; [o;
; [I")Downcases all words except acronyms.;To;;0; [o;
; [I" Capitalizes the first word.;To;
; [I"KThe capitalization of the first word can be turned off by setting the ;TI"5+:capitalize+ option to false (default is true).;T@o;
; [I"CThe trailing '_id' can be kept and capitalized by setting the ;TI"Doptional parameter +keep_id_suffix+ to true (default is false).;T@o:RDoc::Markup::Verbatim; [
I"Ihumanize('employee_salary') # => "Employee salary"
;TI"@humanize('author_id') # => "Author"
;TI"@humanize('author_id', capitalize: false) # => "author"
;TI"<humanize('_id') # => "Id"
;TI"Chumanize('author_id', keep_id_suffix: true) # => "Author Id"
;T:@format0o;
; [I"+If "SSL" was defined to be an acronym:;T@o;; [I"+humanize('ssl_error') # => "SSL error";T;0:
@fileI",lib/active_support/inflector/methods.rb;T:0@omit_headings_from_table_of_contents_below000[ I"O(lower_case_and_underscored_word, capitalize: true, keep_id_suffix: false);T@GFI"Inflector;TcRDoc::NormalModule00