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
1145 def freeze
1146   self::TypecastParams.freeze
1147   super
1148 end
inherited(subclass)

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

[show source]
     # File lib/roda/plugins/typecast_params.rb
1151 def inherited(subclass)
1152   super
1153   subclass.const_set(:TypecastParams, Class.new(self::TypecastParams))
1154 end