Method: ConvertApi::FormatDetector#run
- Defined in:
- lib/convert_api/format_detector.rb
#run ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/convert_api/format_detector.rb', line 7 def run extension = File.extname(path).downcase format = extension[1..-1] raise(FormatError, 'Unable to detect format') if format.nil? format end |