Bug #7112 ยป ruby_file_extname.patch
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"
|