Module: Rack
- Extended by:
- Params::ClassMethods
- Defined in:
- lib/rack/params.rb,
lib/rack/params/errors.rb,
lib/rack/params/result.rb,
lib/rack/params/context.rb,
lib/rack/params/version.rb
Defined Under Namespace
Modules: Params
Class Method Summary collapse
-
.validator(name, options = {}, &code) ⇒ Object
extended
from Params::ClassMethods
register a Validator with the given options and block.
Class Method Details
.validator(name, options = {}, &code) ⇒ Object Originally defined in module Params::ClassMethods
register a Validator with the given options and block. the validator can be used in #validate method by providing the name.