Module: RSS::Atom::PersonConstruct
Defined Under Namespace
Classes: Email, Name, Uri
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.append_features(klass) ⇒ Object
145
146
147
148
149
150
151
152
153
154
155
156
|
# File 'lib/rss/atom.rb', line 145
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
158
159
160
|
# File 'lib/rss/atom.rb', line 158
def maker_target(target)
target.__send__("new_#{self.class.name.split(/::/).last.downcase}")
end
|