Methods
Public Class methods
new()
    # File lib/raw/dispatcher/format/atom.rb, line 8
 8:   def initialize
 9:     @name = "atom"
10:     @content_type = $DBG ? "text/xml" : "application/atom+xml"
11:     @extension = "atom"
12:     @template_extension = "atomx"
13:   end
Public Instance methods
after_action(controller, context)
    # File lib/raw/dispatcher/format/atom.rb, line 15
15:   def after_action(controller, context)
16:     if controller.out.blank?
17:       if model = controller.class.ann(:self, :model)
18:         resource = model.to_s.demodulize.underscore
19:         if collection = controller.instance_variable_get("@#{resource.plural}")
20:           controller.send(:print, ATOM.dump(collection, :id => Context.current.uri))
21:         elsif resource = controller.instance_variable_get("@#{resource}") 
22:           controller.send(:print, ATOM.dump(resource, :id => Context.current.uri))
23:         end
24:       end
25:     end
26:   end