Sha256: 5cc9a9f7002a445fa15068ce8d66d9f21b1f06a0e55aff7332697109dae089e6
Contents?: true
Size: 780 Bytes
Versions: 9
Compression:
Stored size: 780 Bytes
Contents
module Foobara module TypeDeclarations module Handlers class ExtendEntityTypeDeclaration < ExtendDetachedEntityTypeDeclaration class ToTypeTransformer < ExtendDetachedEntityTypeDeclaration::ToTypeTransformer def process_value(strict_declaration_type) super.tap do |outcome| if outcome.success? type = outcome.result entity_class = type.target_class unless entity_class.can_be_created_through_casting? type.casters = type.casters.reject do |caster| caster.is_a?(Foobara::BuiltinTypes::Entity::Casters::Hash) end end end end end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems