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