Sha256: 8ace8323a3c680b9dd5e64306cc682d88420839a39cd87f5249dd19d1f092aca
Contents?: true
Size: 528 Bytes
Versions: 32
Compression:
Stored size: 528 Bytes
Contents
# frozen_string_literal: true require "dry/schema/extensions/info/schema_compiler" module Dry module Schema # Info extension # # @api public module Info module SchemaMethods # Return information about keys and types # # @return [Hash<Symbol=>Hash>] # # @api public def info compiler = SchemaCompiler.new compiler.call(to_ast) compiler.to_h end end end Processor.include(Info::SchemaMethods) end end
Version data entries
32 entries across 32 versions & 1 rubygems