Sha256: f39b473e7ae143c0314457b2ae1b6c7f1c0011ea70bd0a74664f3fff447e9f9f
Contents?: true
Size: 1.14 KB
Versions: 15
Compression:
Stored size: 1.14 KB
Contents
# frozen_string_literal: true require 'dry/schema/compiler' require 'dry/schema/message' require 'dry/schema/message_compiler' require 'dry/schema/extensions/hints/compiler_methods' require 'dry/schema/extensions/hints/message_compiler_methods' require 'dry/schema/extensions/hints/message_set_methods' require 'dry/schema/extensions/hints/result_methods' module Dry module Schema # Hint-specific Message extensions # # @see Message # # @api public class Message # Hints extension for Or messages # # @see Message::Or # # @api public class Or # @api private def hint? false end end # @api private def hint? false end end # A hint message sub-type # # @api private class Hint < Message # @api private def hint? true end end # Hints extensions module Extensions Compiler.prepend(Hints::CompilerMethods) MessageCompiler.prepend(Hints::MessageCompilerMethods) MessageSet.prepend(Hints::MessageSetMethods) Result.prepend(Hints::ResultMethods) end end end
Version data entries
15 entries across 15 versions & 1 rubygems