lib/libis/format/converter/office_converter.rb in libis-format-0.9.22 vs lib/libis/format/converter/office_converter.rb in libis-format-0.9.23
- old
+ new
@@ -9,11 +9,11 @@
module Format
module Converter
class OfficeConverter < Libis::Format::Converter::Base
- def self.input_types(_ = nil)
+ def self.input_types
[
:TXT,
:RTF,
:HTML,
:MSDOC,
@@ -24,10 +24,11 @@
:MSPPTX,
:WORDPERFECT,
]
end
- def self.output_types(_ = nil)
+ def self.output_types(format = nil)
+ return [] unless input_types.include?(format)
[:PDF]
end
def office_convert(_)
#force usage of this converter