Get extension name : extname « File Directory « Ruby






Get extension name


full = '/home/matz/bin/ruby.exe'
File.extname(full)           # => '.exe'

 

Related examples in the same category