Module: RSS::Maker::AtomLogo

Included in:
RSS::Maker::Atom::Feed::Items::Item::Source::Logo
Defined in:
lib/rss/maker/atom.rb

Instance Method Summary collapse

Instance Method Details

#to_feed(feed, current) ⇒ Object



147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# File 'lib/rss/maker/atom.rb', line 147

def to_feed(feed, current)
   = current.class::Logo.new
  class << 
    alias_method(:uri=, :content=)
  end
  set = setup_values()
  class << 
    remove_method(:uri=)
  end
  if set
    current. = 
    set_parent(, current)
    setup_other_elements(feed)
  elsif variable_is_set?
    raise NotSetError.new(self.class.not_set_name,
                          not_set_required_variables)
  end
end