D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
String
/
Filename :
sub-i.ri
back
Copy
U:RDoc::AnyMethod[iI"sub:ETI"String#sub;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"=Returns a copy of +self+ with only the first occurrence ;TI";(not all occurrences) of the given +pattern+ replaced.;To:RDoc::Markup::BlankLine o; ; [I"FSee {Substitution Methods}[rdoc-ref:String@Substitution+Methods].;T@o; ; [I"5Related: String#sub!, String#gsub, String#gsub!.;T: @fileI" string.c;T:0@omit_headings_from_table_of_contents_below0I"Ysub(pattern, replacement) -> new_string sub(pattern) {|match| ... } -> new_string ;T0[ I"(*args);T@FI"String;TcRDoc::NormalClass00