Class: RSS::Maker::TaxonomyTopicModel::TaxonomyTopicsBase
- Inherits:
-
Object
- Object
- RSS::Maker::TaxonomyTopicModel::TaxonomyTopicsBase
- Includes:
- Base
- Defined in:
- lib/rss/maker/taxonomy.rb
Defined Under Namespace
Classes: TaxonomyTopicBase
Instance Method Summary collapse
Methods included from Base
append_features, #have_required_values?, #initialize
Instance Method Details
#new_taxo_topic ⇒ Object
107 108 109 110 111 112 113 114 115 |
# File 'lib/rss/maker/taxonomy.rb', line 107 def new_taxo_topic taxo_topic = self.class::TaxonomyTopic.new(self) @taxo_topics << taxo_topic if block_given? yield taxo_topic else taxo_topic end end |
#to_rss(rss, current) ⇒ Object
117 118 119 120 121 |
# File 'lib/rss/maker/taxonomy.rb', line 117 def to_rss(rss, current) @taxo_topics.each do |taxo_topic| taxo_topic.to_rss(rss, current) end end |