Sha256: 45020d1949065ed4cb8f62f3401930a08d4ac486ddc69c520a2e6a0132e6ea88
Contents?: true
Size: 449 Bytes
Versions: 1
Compression:
Stored size: 449 Bytes
Contents
require 'html2rss/config' require 'html2rss/feed_builder' require 'html2rss/version' require 'yaml' module Html2rss def self.feed_from_yaml_config(file, name) yaml = YAML.load(File.open(file)) feed_config = yaml['feeds'][name] global_config = yaml.reject { |k| k == 'feeds' } config = Config.new(feed_config, global_config) feed(config) end def self.feed(config) feed = FeedBuilder.new config feed.rss end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
html2rss-0.3.0 | lib/html2rss.rb |