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