Module: Html2rss::AttributePostProcessors

Defined in:
lib/html2rss/attribute_post_processors.rb,
lib/html2rss/attribute_post_processors/template.rb,
lib/html2rss/attribute_post_processors/parse_uri.rb,
lib/html2rss/attribute_post_processors/substring.rb,
lib/html2rss/attribute_post_processors/parse_time.rb,
lib/html2rss/attribute_post_processors/sanitize_html.rb

Defined Under Namespace

Classes: ParseTime, ParseUri, SanitizeHtml, Substring, Template

Class Method Summary collapse

Class Method Details

.get_processor(options) ⇒ Object



9
10
11
12
13
14
# File 'lib/html2rss/attribute_post_processors.rb', line 9

def self.get_processor(options)
  camel_cased_option = options['name'].split('_').collect(&:capitalize).join
  class_name = ['Html2rss', 'AttributePostProcessors', camel_cased_option].join('::')

  Object.const_get(class_name)
end