Sha256: fd3c41dc5659ed8f8fafe899cf893be05a2ed7b5303c0d09a65cdbfc983bdc7b

Contents?: true

Size: 534 Bytes

Versions: 8

Compression:

Stored size: 534 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module HasJSendResultParamsValidations
        module UsingDryValidation
          module Concern
            include Support::Concern

            class_methods do
              def contract(&block)
                (@contract ||= ::Class.new(::Dry::Validation::Contract))
                  .tap { |contract| contract.class_exec(&block) if block }
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
convenient_service-0.19.1 lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_dry_validation/concern.rb
convenient_service-0.19.0 lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_dry_validation/concern.rb
convenient_service-0.18.0 lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_dry_validation/concern.rb
convenient_service-0.17.0 lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_dry_validation/concern.rb
convenient_service-0.16.0 lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_dry_validation/concern.rb
convenient_service-0.15.0 lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_dry_validation/concern.rb
convenient_service-0.14.0 lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_dry_validation/concern.rb
convenient_service-0.13.0 lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_dry_validation/concern.rb