Module: TwitterServer

Defined in:
lib/twitter_server.rb,
lib/renderers/nokogiri_renderer.rb

Defined Under Namespace

Modules: Renderer

Class Attribute Summary collapse

Class Attribute Details

.xml_rendererObject

IDEA: have set renderers for JSON/XML/ATOM/RSS Then Sinatra::TwitterServer::Helpers only has a single render method that delegates to the given renderer for the request format. Assume the renderers know how to do their thing.



13
14
15
# File 'lib/twitter_server.rb', line 13

def self.xml_renderer
  @xml_renderer || Renderer::NokogiriRenderer
end