Module: RSS::Maker::AtomGenerator
- Included in:
- RSS::Maker::Atom::Entry::Channel::Generator, RSS::Maker::Atom::Feed::Channel::Generator, RSS::Maker::Atom::Feed::Items::Item::Source::Generator
- Defined in:
- lib/rss/maker/atom.rb
Instance Method Summary collapse
Instance Method Details
#to_feed(feed, current) ⇒ Object
128 129 130 131 132 133 134 135 136 137 138 |
# File 'lib/rss/maker/atom.rb', line 128 def to_feed(feed, current) generator = current.class::Generator.new if setup_values(generator) current.generator = generator set_parent(generator, current) setup_other_elements(feed) elsif variable_is_set? raise NotSetError.new(self.class.not_set_name, not_set_required_variables) end end |