2015-12-16 00:07:31 -05:00
|
|
|
# frozen_string_literal: false
|
2018-11-02 13:52:33 -04:00
|
|
|
require_relative '../content'
|
2018-11-05 02:01:49 -05:00
|
|
|
require_relative '1.0'
|
|
|
|
require_relative '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
|