Sha256: d21a8df0c2b191fe852cad24e89ab1c50929884c7d1f5656858765d98deb17aa

Contents?: true

Size: 590 Bytes

Versions: 8

Compression:

Stored size: 590 Bytes

Contents

require_relative 'attribute_post_processors/parse_time'
require_relative 'attribute_post_processors/parse_uri'
require_relative 'attribute_post_processors/sanitize_html'
require_relative 'attribute_post_processors/substring'
require_relative 'attribute_post_processors/template'

module Html2rss
  module AttributePostProcessors
    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
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
html2rss-0.3.3 lib/html2rss/attribute_post_processors.rb
html2rss-0.3.2 lib/html2rss/attribute_post_processors.rb
html2rss-0.3.1 lib/html2rss/attribute_post_processors.rb
html2rss-0.3.0 lib/html2rss/attribute_post_processors.rb
html2rss-0.2.2 lib/html2rss/attribute_post_processors.rb
html2rss-0.2.1 lib/html2rss/attribute_post_processors.rb
html2rss-0.2.0 lib/html2rss/attribute_post_processors.rb
html2rss-0.1.0 lib/html2rss/attribute_post_processors.rb