2015-12-16 00:07:31 -05:00
|
|
|
# frozen_string_literal: false
|
2004-10-31 09:14:21 -05:00
|
|
|
require 'rss/content'
|
|
|
|
require 'rss/maker/1.0'
|
2007-11-02 07:58:03 -04:00
|
|
|
require 'rss/maker/2.0'
|
2004-10-31 09:14:21 -05:00
|
|
|
|
|
|
|
module RSS
|
|
|
|
module Maker
|
|
|
|
module ContentModel
|
|
|
|
def self.append_features(klass)
|
|
|
|
super
|
|
|
|
|
2007-08-04 23:03:05 -04:00
|
|
|
::RSS::ContentModel::ELEMENTS.each do |name|
|
|
|
|
klass.def_other_element(name)
|
2004-10-31 09:14:21 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2004-11-03 01:43:18 -05:00
|
|
|
class ItemsBase
|
|
|
|
class ItemBase; include ContentModel; end
|
2004-10-31 09:14:21 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|