123456789_123456789_123456789_123456789_123456789_

Module: RSS::Maker::AtomGenerator

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: lib/rss/maker/atom.rb

Instance Method Summary

Instance Method Details

#required_variable_names (private)

[ GitHub ]

  
# File 'lib/rss/maker/atom.rb', line 142

def required_variable_names
  %w(content)
end

#to_feed(feed, current)

[ GitHub ]

  
# File 'lib/rss/maker/atom.rb', line 129

def to_feed(feed, current)
  generator = current.class::Generator.new
  if setup_values(generator)
    current.generator = generator
    set_parent(generator, current)
    setup_other_elements(feed)
  elsif variable_is_set?
    raise NotSetError.new(self.class.not_set_name,
                          not_set_required_variables)
  end
end