Module: RSS::ContentModel
- Extended by:
- BaseModel
- Defined in:
- lib/rss/content.rb
Constant Summary
- 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, #html_escape, #new_with_value_if_need, #to_class_name
Class Method Details
+ (Object) append_features(klass)
12 13 14 15 16 17 18 19 20 |
# File 'lib/rss/content.rb', line 12 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 |