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
8 9 10 11 12 13 |
# File 'lib/rss/maker/image.rb', line 8 def self.append_features(klass) super name = "#{RSS::IMAGE_PREFIX}_item" klass.def_classed_element(name) end |
.install_image_item(klass) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/rss/maker/image.rb', line 15 def self.install_image_item(klass) klass.module_eval(<<-EOC, __FILE__, __LINE__ + 1) class ImageItem < ImageItemBase DublinCoreModel.install_dublin_core(self) end EOC end |