Module: RSS::Atom::PersonConstruct

Included in:
Feed::Author, Feed::Contributor
Defined in:
lib/rss/atom.rb

Defined Under Namespace

Classes: Email, Name, Uri

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.append_features(klass) ⇒ Object



152
153
154
155
156
157
158
159
160
161
162
163
# File 'lib/rss/atom.rb', line 152

def self.append_features(klass)
  super
  klass.class_eval do
    [
     ["name", nil],
     ["uri", "?"],
     ["email", "?"],
    ].each do |tag, occurs|
      install_have_attribute_element(tag, URI, occurs, nil, :content)
    end
  end
end

Instance Method Details

#maker_target(target) ⇒ Object



165
166
167
# File 'lib/rss/atom.rb', line 165

def maker_target(target)
  target.__send__("new_#{self.class.name.split(/::/).last.downcase}")
end