| Module | RSS::Maker::TaxonomyTopicModel |
| In: |
rss/maker/taxonomy.rb
|
# File rss/maker/taxonomy.rb, line 53 def self.append_features(klass) super klass.add_need_initialize_variable("taxo_topics", "make_taxo_topics") klass.add_other_element("taxo_topics") klass.module_eval("attr_reader :taxo_topics\ndef make_taxo_topics\nself.class::TaxonomyTopics.new(@maker)\nend\n\ndef setup_taxo_topics(rss, current)\n@taxo_topics.to_rss(rss, current)\nend\n\ndef taxo_topic\n@taxo_topics[0] and @taxo_topics[0].value\nend\n\ndef taxo_topic=(new_value)\n@taxo_topic[0] = self.class::TaxonomyTopic.new(self)\n@taxo_topic[0].value = new_value\nend\n", __FILE__, __LINE__ + 1) end
# File rss/maker/taxonomy.rb, line 80 def self.install_taxo_topic(klass) klass.module_eval("class TaxonomyTopics < TaxonomyTopicsBase\nclass TaxonomyTopic < TaxonomyTopicBase\nDublinCoreModel.install_dublin_core(self)\nTaxonomyTopicsModel.install_taxo_topics(self)\n\ndef to_rss(rss, current)\nif current.respond_to?(:taxo_topics)\ntopic = current.class::TaxonomyTopic.new(value)\ntopic.taxo_link = value\ntaxo_topics.to_rss(rss, topic) if taxo_topics\ncurrent.taxo_topics << topic\nsetup_other_elements(rss)\nend\nend\n\ndef current_element(rss)\nsuper.taxo_topics.last\nend\nend\nend\n", *Utils.get_file_and_line_from_caller(1)) end
ruby-doc.org is a service of James Britt and Happy Camper Studios, a Ruby application development company in Phoenix, AZ.
Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.
For more information on the Ruby programming language, visit ruby-lang.org.
Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.