lib/proselytism/proselytism.rb in proselytism-0.0.1 vs lib/proselytism/proselytism.rb in proselytism-0.0.2
- old
+ new
@@ -1,9 +1,8 @@
require "active_support/core_ext/module/attribute_accessors"
module Proselytism
- extend Shared
mattr_accessor :config
def self.config(&block)
@@config ||= Config.new
yield @@config if block
@@ -22,9 +21,12 @@
else
@options[method.to_s]
end
end
end
+
+
+
# Finds the relevant converter
def self.get_converter(origin, destination)
Converters::Base.subclasses.detect do |converter|
converter.from.include?(origin) and converter.to.include?(destination)