模块 RSS::ContentModel

常量

ELEMENTS

公共类方法

append_features(klass) 点击切换源代码
调用超类方法
# File rss-0.3.1/lib/rss/content.rb, line 15
def self.append_features(klass)
  super

  klass.install_must_call_validator(CONTENT_PREFIX, CONTENT_URI)
  ELEMENTS.each do |full_name|
    name = full_name[(CONTENT_PREFIX.size + 1)..-1]
    klass.install_text_element(name, CONTENT_URI, "?", full_name)
  end
end