module Camping::Views
See Camping#render
Public Instance Methods
default_format(m)
click to toggle source
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