Sha256: b18afd96426543e3cdce8881aa4fa5db6ac993fe4e7689cbc2af182c75f008a9

Contents?: true

Size: 660 Bytes

Versions: 2

Compression:

Stored size: 660 Bytes

Contents

class Gimei
  class RetryLimitExceeded < StandardError
  end

  class UniqueGenerator
    self.@previous_results: Hash[Symbol, Set[String]]

    def self.previous_results: -> Hash[Symbol, Set[String]]
    def initialize: (Class klass, Integer max_retries) -> void
    def previous_results: -> Hash[Symbol, Set[String]]
    def clear: (?Symbol? key) -> void
    def define_unique_method: (Symbol method_name, ?Symbol previous_result_key) -> Symbol
    def name: -> Name
    def first: -> Name::First
    def last: -> Name::Last
    alias family last
    alias given first

    private
    attr_reader klass: Class
    attr_reader max_retries: Integer
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gimei-1.3.1 sig/gimei/unique_generator.rbs
gimei-1.3.0 sig/gimei/unique_generator.rbs