lib/html2rss/attribute_post_processors.rb in html2rss-0.7.0 vs lib/html2rss/attribute_post_processors.rb in html2rss-0.8.0
- old
+ new
@@ -2,12 +2,10 @@
##
# Provides a namespace for attribute post processors.
module AttributePostProcessors
def self.get_processor(name)
@get_processor ||= Hash.new do |processors, key|
- camel_cased_name = key.split('_').map(&:capitalize).join
- class_name = ['Html2rss', 'AttributePostProcessors', camel_cased_name].join('::')
- processors[key] = Object.const_get(class_name)
+ processors[key] = Utils.get_class_from_name(key, 'AttributePostProcessors')
end
@get_processor[name]
end
end