Module: ConvenientService::Service::Plugins::HasJSendResultParamsValidations::UsingDryValidation::Concern
- Includes:
- ConvenientService::Support::Concern
- Defined in:
- lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_dry_validation/concern.rb
Class Method Summary collapse
Class Method Details
.contract(&block) ⇒ Object
12 13 14 15 |
# File 'lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_dry_validation/concern.rb', line 12 def contract(&block) (@contract ||= ::Class.new(::Dry::Validation::Contract)) .tap { |contract| contract.class_exec(&block) if block } end |