See Camping#render
Call this inside your Views module to set a default format.
For example:
module Foobar::Views
module HTML
# ... etc.
end
default_format :XML
end
# File lib/reststop.rb, line 211 def default_format(m) mod = "Camping::Views::#{m.to_s}".constantize Mab.class_eval{include mod} end
Generated with the Darkfish Rdoc Generator 2.