lib/reverse_adoc.rb in reverse_adoc-0.2.9 vs lib/reverse_adoc.rb in reverse_adoc-0.2.10
- old
+ new
@@ -6,17 +6,14 @@
require 'reverse_adoc/errors'
require 'reverse_adoc/cleaner'
require 'reverse_adoc/config'
require 'reverse_adoc/converters'
require 'reverse_adoc/converters/base'
+require "reverse_adoc/html_converter"
module ReverseAdoc
def self.convert(input, options = {})
- type = config.input_format
- name = "#{type}_converter"
- require "reverse_adoc/#{type}_converter"
- constant = name.split('_').map(&:capitalize).join.to_s
- ReverseAdoc.const_get(constant).convert(input, options)
+ ReverseAdoc::HtmlConverter.convert(input, options)
end
def self.config
@config ||= Config.new
yield @config if block_given?