Skip to content
Snippets Groups Projects
Commit fddee0c8 authored by Bruno Nocera Zanette's avatar Bruno Nocera Zanette
Browse files

Add get_file_extname method

parent 3c9044fb
No related branches found
No related tags found
No related merge requests found
module Thumbnail
module Formats
def get_file_format file
def get_file_basename file
unless file.nil?
file_format = File.extname(file)
file_format = File.basename(file)
else
file_format = ""
end
file_format
end
def get_file_extname file
unless file.nil?
file_name = File.extname(file)
else
file_name = ""
end
file_name
end
def array_to_upcase array
upcase_array = []
array.each do |a|
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment