Module: RSS::ContentModel
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
|
Included In:
| |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
|
|
| Defined in: | lib/rss/content.rb |
Constant Summary
-
ELEMENTS =
# File 'lib/rss/content.rb', line 13["#{CONTENT_PREFIX}_encoded"]
Class Method Summary
BaseModel - Extended
Utils - Included
| element_initialize_arguments? | This method is used inside of several different objects to determine if special behavior is needed in the constructor. |
| get_file_and_line_from_caller | Returns an array of two elements: the filename where the calling method is located, and the line number where it is defined. |
| new_with_value_if_need | If |
| to_class_name | Given a |
Class Method Details
.append_features(klass)
[ GitHub ]# 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