Sha256: ec97ef64ac922a3063943365b502e7483f30e3108ffb3105232aa6efc6162057
Contents?: true
Size: 842 Bytes
Versions: 26
Compression:
Stored size: 842 Bytes
Contents
module Foobara module BuiltinTypes module Duck module SupportedValidators class InstanceOf < TypeDeclarations::Validator module TypeDeclarationExtension module ExtendRegisteredTypeDeclaration module Desugarizers class ClassDesugarizer < TypeDeclarations::Desugarizer def applicable?(rawish_type_declaration) rawish_type_declaration.is_a?(::Class) end def desugarize(rawish_type_declaration) { type: :duck, instance_of: rawish_type_declaration.name } end def priority Priority::LOWEST + 1 end end end end end end end end end end
Version data entries
26 entries across 26 versions & 1 rubygems