Extended maintenance of Ruby 1.9.3 ended on February 23, 2015. Read more

In Files

  • rss/maker/taxonomy.rb

Class/Module Index [+]

Quicksearch

RSS::Maker::TaxonomyTopicsModel

Public Class Methods

append_features(klass) click to toggle source
 
               # File rss/maker/taxonomy.rb, line 8
def self.append_features(klass)
  super

  klass.def_classed_element("#{RSS::TAXO_PREFIX}_topics",
                            "TaxonomyTopics")
end
            
install_taxo_topics(klass) click to toggle source
 
               # File rss/maker/taxonomy.rb, line 15
      def self.install_taxo_topics(klass)
        klass.module_eval("          class TaxonomyTopics < TaxonomyTopicsBase
            def to_feed(feed, current)
              if current.respond_to?(:taxo_topics)
                topics = current.class::TaxonomyTopics.new
                bag = topics.Bag
                @resources.each do |resource|
                  bag.lis << RDF::Bag::Li.new(resource)
                end
                current.taxo_topics = topics
              end
            end
          end
", __FILE__, __LINE__ + 1)
      end