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
Overview
Provides a namespace for attribute post processors.
Defined Under Namespace
Classes: ParseTime, ParseUri, SanitizeHtml, Substring, Template
Class Method Summary collapse
Class Method Details
.get_processor(name) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/html2rss/attribute_post_processors.rb', line 11 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 |