D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
IO
/
Buffer
/
Filename :
string-c.ri
back
Copy
U:RDoc::AnyMethod[iI"string:ETI"IO::Buffer::string;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"PCreates a new string of the given length and yields a zero-copy IO::Buffer ;TI"Kinstance to the block which uses the string as a source. The block is ;TI"Eexpected to write to the buffer and the string will be returned.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"&IO::Buffer.string(4) do |buffer| ;TI"! buffer.set_string("Ruby") ;TI" end ;TI"# => "Ruby";T:@format0: @fileI"io_buffer.c;T:0@omit_headings_from_table_of_contents_below0I"TIO::Buffer.string(length) {|io_buffer| ... read/write io_buffer ...} -> string ;T0[ I" (p1);T@FI"Buffer;TcRDoc::NormalClass00