class CloudConvert::File

Public Class Methods

new(file, content_type = nil, *parts) click to toggle source
Calls superclass method
# File lib/cloudconvert/file.rb, line 3
def initialize(file, content_type = nil, *parts)
  content_type ||= "text/plain" if file.is_a? StringIO
  content_type ||= Marcel::Magic.by_magic(file) || Marcel::Magic.by_path(file)
  super(file, content_type, *parts)
end