append_features(klass) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/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}\ndef setup_\#{element}(rss, current)\nif \#{element} and current.respond_to?(:\#{element}=)\ncurrent.\#{element} = @\#{element} if @\#{element}\nend\nend\n", __FILE__, __LINE__+1)
        end
      end
Register or log in to add new notes.