Module RSS::Maker::TaxonomyTopicsModel
In: lib/rss/maker/taxonomy.rb

Methods

Classes and Modules

Class RSS::Maker::TaxonomyTopicsModel::TaxonomyTopicsBase

Public Class methods

[Source]

    # File lib/rss/maker/taxonomy.rb, line 8
 8:       def self.append_features(klass)
 9:         super
10: 
11:         klass.add_need_initialize_variable("taxo_topics", "make_taxo_topics")
12:         klass.add_other_element("taxo_topics")
13:         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", __FILE__, __LINE__ + 1)
14:       end

[Source]

    # File lib/rss/maker/taxonomy.rb, line 26
26:       def self.install_taxo_topics(klass)
27:         klass.module_eval("class TaxonomyTopics < TaxonomyTopicsBase\ndef to_rss(rss, current)\nif current.respond_to?(:taxo_topics)\ntopics = current.class::TaxonomyTopics.new\nbag = topics.Bag\n@resources.each do |resource|\nbag.lis << RDF::Bag::Li.new(resource)\nend\ncurrent.taxo_topics = topics\nend\nend\nend\n", *Utils.get_file_and_line_from_caller(1))
28:       end

[Validate]