In Files

  • rss/maker/syndication.rb

Class/Module Index [+]

Quicksearch

RSS::Maker::SyndicationModel

Public Class Methods

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

        ::RSS::SyndicationModel::ELEMENTS.each do |element|
          klass.add_need_initialize_variable(element)
          klass.add_other_element(element)
          klass.module_eval("            attr_accessor :#{element}
            def setup_#{element}(rss, current)
              if #{element} and current.respond_to?(:#{element}=)
                current.#{element} = @#{element} if @#{element}
              end
            end
", __FILE__, __LINE__+1)
        end
      end