Module: Roda::RodaPlugins::ParamsCheck::ClassMethods
- Defined in:
- lib/zleb/plugins/params_check.rb
Instance Method Summary collapse
Instance Method Details
#def_checker(&block) ⇒ Object
115 116 117 |
# File 'lib/zleb/plugins/params_check.rb', line 115 def def_checker(&block) block end |
#def_pub_checker(name, &block) ⇒ Object
119 120 121 122 123 124 |
# File 'lib/zleb/plugins/params_check.rb', line 119 def def_pub_checker(name, &block) if !(RequestCheckerContainer.key?(name)) contract = Class.new(ApplicationContract, &block) RequestCheckerContainer.register(name, contract.new) end end |