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

Methods

Classes and Modules

Class RSS::Maker::TaxonomyTopicsModel::TaxonomyTopicsBase

Public Class methods

[Source]

# File rss/maker/taxonomy.rb, line 8
      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", __FILE__, __LINE__ + 1)
      end

[Source]

# File rss/maker/taxonomy.rb, line 26
      def self.install_taxo_topics(klass)
        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))
      end

[Validate]

ruby-doc.org is a community service provided by James Britt and Happy Camper Studios, a Phoenix, Arizona, Ruby application development company.

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.