Sha256: eedf53dae9b28b502fbd6c0750122f4ddf1ebbd412ca98dc8d881e34f7aae43b
Contents?: true
Size: 609 Bytes
Versions: 26
Compression:
Stored size: 609 Bytes
Contents
module Foobara module TypeDeclarations module Handlers class RegisteredTypeDeclaration < TypeDeclarationHandler class ModelClassDesugarizer < TypeDeclarations::Desugarizer def applicable?(sugary_type_declaration) sugary_type_declaration.is_a?(Class) && sugary_type_declaration < Model end def desugarize(model_class) { type: model_class.model_type.foobara_manifest_reference.to_sym } end def priority Priority::FIRST - 1 end end end end end end
Version data entries
26 entries across 26 versions & 1 rubygems