1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Import::Vcf::Unknown and ::Reading, and Import::Staged::Row, are Data
# classes, whose members the inline parser cannot read (see
# sig/pro_tacts/contact.rbs). Each is marked `@rbs skip` where it is
# defined and signed here.
module ProTacts
  module Import
    module Vcf
      class Unknown
        attr_reader name: String
        attr_reader count: Integer
        attr_reader examples: Array[String]

        def self.new: (name: String, count: Integer, examples: Array[String]) -> instance
      end

      class Reading
        attr_reader card: ::ProTacts::VCard
        attr_reader dropped: Array[::ProTacts::VCard::Parser::Line]

        def self.new: (card: ::ProTacts::VCard, dropped: Array[::ProTacts::VCard::Parser::Line]) -> instance
      end
    end

    module Staged
      class Row
        attr_reader label: String
        attr_reader sort_key: String
        attr_reader losses: Integer

        def self.new: (label: String, sort_key: String, losses: Integer) -> instance
        def to_h: () -> Hash[Symbol, untyped]
      end
    end
  end
end