Module: Html2rss::AttributePostProcessors

Defined in:
lib/html2rss/attribute_post_processors.rb,
lib/html2rss/attribute_post_processors/gsub.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,
lib/html2rss/attribute_post_processors/html_to_markdown.rb,
lib/html2rss/attribute_post_processors/markdown_to_html.rb

Overview

Provides a namespace for attribute post processors.

Defined Under Namespace

Classes: Gsub, HtmlToMarkdown, MarkdownToHtml, ParseTime, ParseUri, SanitizeHtml, Substring, Template

Class Method Summary collapse

Class Method Details

.get_processor(name) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/html2rss/attribute_post_processors.rb', line 5

def self.get_processor(name)
  @get_processor ||= Hash.new do |processors, key|
    processors[key] = Utils.get_class_from_name(key, 'AttributePostProcessors')
  end

  @get_processor[name]
end