Module: TwitterServer
- Defined in:
- lib/twitter_server.rb,
lib/renderers/nokogiri_renderer.rb
Defined Under Namespace
Modules: Renderer
Class Attribute Summary collapse
-
.xml_renderer ⇒ Object
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.
Class Attribute Details
.xml_renderer ⇒ Object
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 |