Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
String
/
//opt/alt/ruby27/share/ri/system/String/new-c.ri
U:RDoc::AnyMethod[iI"new:ETI"String::new;TT:privateo:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"AReturns a new string object containing a copy of <i>str</i>.;To:RDoc::Markup::BlankLine o; ; [ I"JThe optional <i>encoding</i> keyword argument specifies the encoding ;TI"of the new string. ;TI":If not specified, the encoding of <i>str</i> is used ;TI"5(or ASCII-8BIT, if <i>str</i> is not specified).;T@o; ; [ I"FThe optional <i>capacity</i> keyword argument specifies the size ;TI"of the internal buffer. ;TI"MThis may improve performance, when the string will be concatenated many ;TI"(times (causing many realloc calls).;T: @fileI" string.c;T:0@omit_headings_from_table_of_contents_below0I"�String.new(str="") -> new_str String.new(str="", encoding: enc) -> new_str String.new(str="", capacity: size) -> new_str ;T0[ I"(p1 = v1, p2 = {});T@FI"String;TcRDoc::NormalClass00