File: C:/Ruby27-x64/lib/ruby/gems/2.7.0/doc/activemodel-7.0.4.2/ri/ActiveModel/Name/new-c.ri
U:RDoc::AnyMethod[iI"new:ETI"ActiveModel::Name::new;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"KReturns a new ActiveModel::Name instance. By default, the +namespace+ ;TI"Kand +name+ option will take the namespace and name of the given class ;TI"respectively. ;TI"DUse +locale+ argument for singularize and pluralize model name.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"module Foo
;TI" class Bar
;TI" end
;TI" end
;TI"
;TI"*ActiveModel::Name.new(Foo::Bar).to_s
;TI"# => "Foo::Bar";T:@format0:
@fileI"lib/active_model/naming.rb;T:0@omit_headings_from_table_of_contents_below000[ I"7(klass, namespace = nil, name = nil, locale = :en);T@FI" Name;TcRDoc::NormalClass00