ruby_file_extname.patch

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

Download (434 Bytes)

View differences:

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