PageRenderTime 163ms CodeModel.GetById 159ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/tools/Ruby/lib/ruby/1.8/rss/maker/content.rb

http://github.com/agross/netopenspace
Ruby | 21 lines | 18 code | 3 blank | 0 comment | 0 complexity | 0eea60f014441d7608946f7a53bf8388 MD5 | raw file
 1require 'rss/content'
 2require 'rss/maker/1.0'
 3require 'rss/maker/2.0'
 4
 5module RSS
 6  module Maker
 7    module ContentModel
 8      def self.append_features(klass)
 9        super
10
11        ::RSS::ContentModel::ELEMENTS.each do |name|
12          klass.def_other_element(name)
13        end
14      end
15    end
16
17    class ItemsBase
18      class ItemBase; include ContentModel; end
19    end
20  end
21end