Sha256: 28edd4bf561a01ff97265053babfa95f71290a28e89cff3c385e0ffd6f8a1352

Contents?: true

Size: 488 Bytes

Versions: 38

Compression:

Stored size: 488 Bytes

Contents

module Foobara
  module TypeDeclarations
    module Handlers
      class ExtendModelTypeDeclaration < ExtendRegisteredTypeDeclaration
        def applicable?(sugary_type_declaration)
          if sugary_type_declaration.is_a?(::Hash)
            desugarize(sugary_type_declaration)[:type] == expected_type_symbol
          end
        end

        def expected_type_symbol
          :model
        end

        def priority
          Priority::LOW
        end
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
foobara-0.0.18 projects/model/src/extensions/type_declarations/handlers/extend_model_type_declaration.rb
foobara-0.0.17 projects/model/src/extensions/type_declarations/handlers/extend_model_type_declaration.rb
foobara-0.0.16 projects/model/src/extensions/type_declarations/handlers/extend_model_type_declaration.rb
foobara-0.0.15 projects/model/src/extensions/type_declarations/handlers/extend_model_type_declaration.rb
foobara-0.0.14 projects/model/src/extensions/type_declarations/handlers/extend_model_type_declaration.rb
foobara-0.0.13 projects/model/src/extensions/type_declarations/handlers/extend_model_type_declaration.rb
foobara-0.0.12 projects/model/src/extensions/type_declarations/handlers/extend_model_type_declaration.rb
foobara-0.0.11 projects/model/src/extensions/type_declarations/handlers/extend_model_type_declaration.rb
foobara-0.0.10 projects/model/src/extensions/type_declarations/handlers/extend_model_type_declaration.rb
foobara-0.0.9 projects/model/src/extensions/type_declarations/handlers/extend_model_type_declaration.rb
foobara-0.0.8 projects/model/src/extensions/type_declarations/handlers/extend_model_type_declaration.rb
foobara-0.0.7 projects/model/src/extensions/type_declarations/handlers/extend_model_type_declaration.rb
foobara-0.0.6 projects/model/src/extensions/type_declarations/handlers/extend_model_type_declaration.rb
foobara-0.0.5 projects/model/src/extensions/type_declarations/handlers/extend_model_type_declaration.rb
foobara-0.0.4 projects/model/src/extensions/type_declarations/handlers/extend_model_type_declaration.rb
foobara-0.0.3 projects/model/src/extensions/type_declarations/handlers/extend_model_type_declaration.rb
foobara-0.0.2 projects/model/src/extensions/type_declarations/handlers/extend_model_type_declaration.rb
foobara-0.0.1 projects/model/src/extensions/type_declarations/handlers/extend_model_type_declaration.rb