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,
lib/html2rss/attribute_post_processors/html_to_markdown.rb
Overview
Provides a namespace for attribute post processors.
Defined Under Namespace
Classes: HtmlToMarkdown, ParseTime, ParseUri, SanitizeHtml, Substring, Template
Class Method Summary collapse
Class Method Details
.get_processor(name) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/html2rss/attribute_post_processors.rb', line 12 def self.get_processor(name) camel_cased_name = name.split('_').map(&:capitalize).join class_name = ['Html2rss', 'AttributePostProcessors', camel_cased_name].join('::') Object.const_get(class_name) end |