📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 15:48:51
📂
/ (Root)
/
opt
/
alt
/
ruby30
/
share
/
ri
/
system
/
File
📍 /opt/alt/ruby30/share/ri/system/File
🔄 Refresh
✏️
Editing: basename-c.ri
Read Only
U:RDoc::AnyMethod[iI" basename:ETI"File::basename;TT:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"9Returns the last component of the filename given in ;TI"C<i>file_name</i> (after first stripping trailing separators), ;TI"8which can be formed using both File::SEPARATOR and ;TI"FFile::ALT_SEPARATOR as the separator when File::ALT_SEPARATOR is ;TI"Hnot <code>nil</code>. If <i>suffix</i> is given and present at the ;TI"Gend of <i>file_name</i>, it is removed. If <i>suffix</i> is ".*", ;TI"#any extension will be removed.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"FFile.basename("/home/gumby/work/ruby.rb") #=> "ruby.rb" ;TI"CFile.basename("/home/gumby/work/ruby.rb", ".rb") #=> "ruby" ;TI"BFile.basename("/home/gumby/work/ruby.rb", ".*") #=> "ruby";T:@format0: @fileI"file.c;T:0@omit_headings_from_table_of_contents_below0I"9File.basename(file_name [, suffix] ) -> base_name ;T0[ I"(*args);T@FI" File;TcRDoc::NormalClass00
💾 Save Changes
❌ Cancel