Sha256: baaf805c69e46a17b5e8617b9bcac7e510a14dbe4863948d4225654b664c66dc
Contents?: true
Size: 464 Bytes
Versions: 1
Compression:
Stored size: 464 Bytes
Contents
module Html2rss ## # 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) end @get_processor[name] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
html2rss-0.7.0 | lib/html2rss/attribute_post_processors.rb |