Class: Html2rss::RssBuilder::Channel

Inherits:
Object
  • Object
show all
Defined in:
lib/html2rss/rss_builder/channel.rb

Overview

Builds the <channel> tag (with the provided maker).

Class Method Summary collapse

Class Method Details

.add(maker, config, tags) ⇒ Object



13
14
15
16
17
18
# File 'lib/html2rss/rss_builder/channel.rb', line 13

def self.add(maker, config, tags)
  tags.each { |tag| maker.public_send(:"#{tag}=", config.public_send(tag)) }

  maker.generator = "html2rss V. #{::Html2rss::VERSION}"
  maker.lastBuildDate = Time.now
end