Module: ConvenientService::Service::Plugins::HasJSendResultParamsValidations::UsingDryValidation::Concern Private
- Includes:
- ConvenientService::Support::Concern
- Defined in:
- lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_dry_validation/concern.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .contract(&block) ⇒ Object private
Methods included from ConvenientService::Support::Concern
Class Method Details
.contract(&block) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 20 |
# File 'lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_dry_validation/concern.rb', line 17 def contract(&block) (@contract ||= ::Class.new(::Dry::Validation::Contract)) .tap { |contract| contract.class_exec(&block) if block } end |