Module: RSS::Maker::ImageItemModel
- Included in:
- RSS::Maker::ItemsBase::ItemBase
- Defined in:
- lib/rss/maker/image.rb
Defined Under Namespace
Classes: ImageItemBase
Class Method Summary collapse
Class Method Details
.append_features(klass) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/rss/maker/image.rb', line 9 def self.append_features(klass) super name = "#{RSS::IMAGE_PREFIX}_item" klass.def_classed_element(name) end |
.install_image_item(klass) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/rss/maker/image.rb', line 16 def self.install_image_item(klass) klass.module_eval(<<-EOC, __FILE__, __LINE__ + 1) class ImageItem < ImageItemBase DublinCoreModel.install_dublin_core(self) end EOC end |