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
/
File
/
//opt/alt/ruby27/share/ri/system/File/open-c.ri
U:RDoc::AnyMethod[iI" open:ETI"File::open;TT:privateo:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [ I":With no associated block, File.open is a synonym for ;TI"<File.new. If the optional code block is given, it will ;TI"Ibe passed the opened +file+ as an argument and the File object will ;TI"Pautomatically be closed when the block terminates. The value of the block ;TI"%will be returned from File.open.;To:RDoc::Markup::BlankLine o; ; [I"NIf a file is being created, its initial permissions may be set using the ;TI"<+perm+ parameter. See File.new for further discussion.;T@o; ; [I"ESee IO.new for a description of the +mode+ and +opt+ parameters.;T: @fileI" io.c;T:0@omit_headings_from_table_of_contents_below0I"�File.open(filename, mode="r" [, opt]) -> file File.open(filename [, mode [, perm]] [, opt]) -> file File.open(filename, mode="r" [, opt]) {|file| block } -> obj File.open(filename [, mode [, perm]] [, opt]) {|file| block } -> obj ;T0[ I"(*args);T@FI" File;TcRDoc::NormalClass00