📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 07:32:33
📂
/ (Root)
/
opt
/
alt
/
ruby33
/
share
/
ri
/
system
/
StringIO
📍 /opt/alt/ruby33/share/ri/system/StringIO
🔄 Refresh
✏️
Editing: open-c.ri
Read Only
U:RDoc::AnyMethod[iI" open:ETI"StringIO::open;TT:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"ENote that +mode+ defaults to <tt>'r'</tt> if +string+ is frozen.;To:RDoc::Markup::BlankLine o; ; [I"GCreates a new \StringIO instance formed from +string+ and +mode+; ;TI"4see {Access Modes}[rdoc-ref:File@Access+Modes].;T@o; ; [I"-With no block, returns the new instance:;T@o:RDoc::Markup::Verbatim; [I",strio = StringIO.open # => #<StringIO> ;T:@format0o; ; [I"9With a block, calls the block with the new instance ;TI"$and returns the block's value; ;TI"'closes the instance on block exit.;T@o;; [I"&StringIO.open {|strio| p strio } ;TI"# => #<StringIO> ;T; 0o; ; [I"Related: StringIO.new.;T: @fileI"ext/stringio/stringio.c;T:0@omit_headings_from_table_of_contents_below0I"<StringIO.open(string = '', mode = 'r+') {|strio| ... } ;T0[ I"(*args);T@%FI" StringIO;TcRDoc::NormalClass00
💾 Save Changes
❌ Cancel