module Roda::RodaPlugins::TypecastParams::ClassMethods

def freeze

Freeze the Params subclass when freezing the class.
def freeze
  self::TypecastParams.freeze
  super
end

def inherited(subclass)

Assign the application subclass a subclass of the current Params subclass.
def inherited(subclass)
  super
  subclass.const_set(:TypecastParams, Class.new(self::TypecastParams))
end