In Files

  • rss/maker/image.rb

Class/Module Index [+]

Quicksearch

RSS::Maker::ImageFaviconModel

Public Class Methods

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

        name = "#{RSS::IMAGE_PREFIX}_favicon"
        klass.add_need_initialize_variable(name, "make_#{name}")
        klass.add_other_element(name)
        klass.module_eval("          attr_reader :#{name}
          def setup_#{name}(rss, current)
            if @#{name}
              @#{name}.to_rss(rss, current)
            end
          end

          def make_#{name}
            self.class::#{Utils.to_class_name(name)}.new(@maker)
          end
", __FILE__, __LINE__+1)
      end