Module: RSS::Atom::CommonModel
- Included in:
- Entry, Feed, Feed::Author, Feed::Category, Feed::Contributor, Feed::Entry, Feed::Entry::Content, Feed::Entry::Published, Feed::Entry::Source, Feed::Entry::Summary, Feed::Generator, Feed::Icon, Feed::Id, Feed::Link, Feed::Logo, Feed::Rights, Feed::Subtitle, Feed::Title, Feed::Updated, PersonConstruct::Email, PersonConstruct::Name, PersonConstruct::Uri
- Defined in:
- lib/rss/atom.rb
Constant Summary collapse
- NSPOOL =
{}
- ELEMENTS =
[]
Class Method Summary collapse
Class Method Details
.append_features(klass) ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/rss/atom.rb', line 29 def self.append_features(klass) super klass.install_must_call_validator("atom", URI) [ ["lang", :xml], ["base", :xml], ].each do |name, uri, required| klass.install_get_attribute(name, uri, required, [nil, :inherit]) end klass.class_eval do class << self # Returns the Atom URI W3C Namespace def required_uri URI end # Returns true def need_parent? true end end end end |