📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 15:31:55
📂
/ (Root)
/
opt
/
alt
/
ruby33
/
share
/
ri
/
system
/
File
📍 /opt/alt/ruby33/share/ri/system/File
🔄 Refresh
✏️
Editing: dirname-c.ri
Read Only
U:RDoc::AnyMethod[iI"dirname:ETI"File::dirname;TT:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"FReturns all components of the filename given in <i>file_name</i> ;TI"Fexcept the last one (after first stripping trailing separators). ;TI"?The filename can be formed using both File::SEPARATOR and ;TI"FFile::ALT_SEPARATOR as the separator when File::ALT_SEPARATOR is ;TI"not <code>nil</code>.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"GFile.dirname("/home/gumby/work/ruby.rb") #=> "/home/gumby/work" ;T:@format0o; ; [I"HIf +level+ is given, removes the last +level+ components, not only ;TI" one.;T@o;; [I"CFile.dirname("/home/gumby/work/ruby.rb", 2) #=> "/home/gumby" ;TI"8File.dirname("/home/gumby/work/ruby.rb", 4) #=> "/";T; 0: @fileI"file.c;T:0@omit_headings_from_table_of_contents_below0I"6File.dirname(file_name, level = 1) -> dir_name ;T0[ I"(*args);T@FI" File;TcRDoc::NormalClass00
💾 Save Changes
❌ Cancel