D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
File
/
Filename :
dirname-c.ri
back
Copy
U:RDoc::AnyMethod[iI"dirname:ETI"File::dirname;TT:publico: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