Module: RSS::ContentModel
Constant Summary collapse
- ELEMENTS =
["#{CONTENT_PREFIX}_encoded"]
Class Method Summary collapse
Methods included from BaseModel
install_date_element, install_have_child_element, install_have_children_element, install_text_element
Methods included from Utils
element_initialize_arguments?, get_file_and_line_from_caller, new_with_value_if_need, to_class_name
Class Method Details
.append_features(klass) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File '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 |