Sha256: 64028ff1109e5433ad765ef5019dd0f13603b3111ec20fd8fe76a25ee5ae1649
Contents?: true
Size: 441 Bytes
Versions: 11
Compression:
Stored size: 441 Bytes
Contents
# typed: strict module Typed module Coercion class Coercer extend T::Sig extend T::Generic abstract! Target = type_member(:out) sig { abstract.params(type: T::Types::Base).returns(T::Boolean) } def used_for_type?(type) end sig { abstract.params(type: T::Types::Base, value: Value).returns(Result[Target, CoercionError]) } def coerce(type:, value:) end end end end
Version data entries
11 entries across 11 versions & 1 rubygems