Project

General

Profile

Bug #7112 ยป ruby_file_extname.patch

File.extname doc patch - noah256 (Noah Silas), 10/06/2012 11:59 AM

View differences:

file.c (working copy)
* File.extname(path) -> string
*
* Returns the extension (the portion of file name in <i>path</i>
* after the period).
* starting from the last period).
*
* File.extname("test.rb") #=> ".rb"
* File.extname("a/b/d/test.rb") #=> ".rb"
    (1-1/1)