| Class | RSS::Maker::Atom::Feed::Items::Item::Source::Icon |
| In: |
lib/rss/maker/feed.rb
|
| Parent: | IconBase |
# File lib/rss/maker/feed.rb, line 282
282: def to_feed(feed, current)
283: icon = current.class::Icon.new
284: class << icon
285: alias_method(:url=, :content=)
286: end
287: set = setup_values(icon)
288: class << icon
289: remove_method(:url=)
290: end
291: if set
292: current.icon = icon
293: set_parent(icon, current)
294: setup_other_elements(feed, icon)
295: elsif variable_is_set?
296: raise NotSetError.new("maker.item.source.icon",
297: not_set_required_variables)
298: end
299: end