Sha256: 6aee69d512405bc788ff9ad9898b0956a6f63fc4a2f7f151ee75016b091dc963

Contents?: true

Size: 629 Bytes

Versions: 1

Compression:

Stored size: 629 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
  ##
  # Provides a namespace for attribute post processors.
  module AttributePostProcessors
    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
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
html2rss-0.4.0 lib/html2rss/attribute_post_processors.rb