module Roda::RodaPlugins::TypecastParams
def self.configure(app, opts=OPTS, &block)
Respect the strip: :all to strip all parameter strings
and if a block is passed, eval it in the context of the subclass.
Set application-specific Params subclass unless one has been set,
def self.configure(app, opts=OPTS, &block) app.const_set(:TypecastParams, Class.new(RodaPlugins::TypecastParams::Params)) unless app.const_defined?(:TypecastParams) app::TypecastParams.class_eval(&block) if block if opts[:strip] == :all app::TypecastParams.send(:include, StringStripper) end end