method
append_features
append_features(klass)
public
Hide source
# File lib/rss/maker/image.rb, line 50 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}\ndef setup_\#{name}(rss, current)\nif @\#{name}\n@\#{name}.to_rss(rss, current)\nend\nend\n\ndef make_\#{name}\nself.class::\#{Utils.to_class_name(name)}.new(@maker)\nend\n", __FILE__, __LINE__+1) end