Module: RSS::Maker::ImageFaviconModel

Included in:
ChannelBase
Defined in:
lib/rss/maker/image.rb

Defined Under Namespace

Classes: ImageFaviconBase

Class Method Summary collapse

Class Method Details

.append_features(klass) ⇒ Object



53
54
55
56
57
58
# File 'lib/rss/maker/image.rb', line 53

def self.append_features(klass)
  super

  name = "#{RSS::IMAGE_PREFIX}_favicon"
  klass.def_classed_element(name)
end

.install_image_favicon(klass) ⇒ Object



60
61
62
63
64
65
66
# File 'lib/rss/maker/image.rb', line 60

def self.install_image_favicon(klass)
  klass.module_eval(<<-EOC, __FILE__, __LINE__ + 1)
    class ImageFavicon < ImageFaviconBase
      DublinCoreModel.install_dublin_core(self)
    end
  EOC
end