module Roda::RodaPlugins::TypecastParams::ClassMethods

  1. lib/roda/plugins/typecast_params.rb

Methods

Public Instance

  1. freeze
  2. inherited

Public Instance methods

freeze()

Freeze the Params subclass when freezing the class.

[show source]
     # File lib/roda/plugins/typecast_params.rb
1115 def freeze
1116   self::TypecastParams.freeze
1117   super
1118 end
inherited(subclass)

Assign the application subclass a subclass of the current Params subclass.

[show source]
     # File lib/roda/plugins/typecast_params.rb
1121 def inherited(subclass)
1122   super
1123   subclass.const_set(:TypecastParams, Class.new(self::TypecastParams))
1124 end