From fcbf63e62c627deae76c1b8cb8c0876c536ed811 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Mon, 16 Mar 2020 18:49:26 +0900 Subject: Fresh start --- jni/ruby/lib/rss/maker/content.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 jni/ruby/lib/rss/maker/content.rb (limited to 'jni/ruby/lib/rss/maker/content.rb') diff --git a/jni/ruby/lib/rss/maker/content.rb b/jni/ruby/lib/rss/maker/content.rb new file mode 100644 index 0000000..46c4911 --- /dev/null +++ b/jni/ruby/lib/rss/maker/content.rb @@ -0,0 +1,21 @@ +require 'rss/content' +require 'rss/maker/1.0' +require 'rss/maker/2.0' + +module RSS + module Maker + module ContentModel + def self.append_features(klass) + super + + ::RSS::ContentModel::ELEMENTS.each do |name| + klass.def_other_element(name) + end + end + end + + class ItemsBase + class ItemBase; include ContentModel; end + end + end +end -- cgit v1.2.3