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

Version Path
sorbet-schema-0.9.2 lib/typed/coercion/coercer.rb
sorbet-schema-0.9.1 lib/typed/coercion/coercer.rb
sorbet-schema-0.9.0 lib/typed/coercion/coercer.rb
sorbet-schema-0.8.0 lib/typed/coercion/coercer.rb
sorbet-schema-0.7.2 lib/typed/coercion/coercer.rb
sorbet-schema-0.7.1 lib/typed/coercion/coercer.rb
sorbet-schema-0.7.0 lib/typed/coercion/coercer.rb
sorbet-schema-0.6.0 lib/typed/coercion/coercer.rb
sorbet-schema-0.5.1 lib/typed/coercion/coercer.rb
sorbet-schema-0.4.2 lib/typed/coercion/coercer.rb
sorbet-schema-0.4.1 lib/typed/coercion/coercer.rb