Sha256: 96891cd17fad7a77110468147b08ba193932b24a8014d849d80d16a3ac576c32

Contents?: true

Size: 406 Bytes

Versions: 2

Compression:

Stored size: 406 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module Yogurt
  class CodeGenerator
    class TypedOutput < T::Struct
      # The signature to put in the sorbet type
      const :signature, String

      # Converter function to use for the return result.
      # This assumes that a local variable named `raw_value` has the
      # value to be converted.
      const :deserializer, String
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yogurt-0.2.0 lib/yogurt/code_generator/typed_output.rb
yogurt-0.1.1 lib/yogurt/code_generator/typed_output.rb