Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,21 @@ class Options

ALLOWED_OVERLOAD_STRATEGIES = [:translate_all, :translate_last, :raise].freeze #: Array[Symbol]

#: bool
attr_reader :erase_generic_types

#: BaseRBIFormat
attr_reader :output_format

#: (
# :translate_all | :translate_last | :raise
#| ?overloads_strategy: Symbol,
#| ?erase_generic_types: bool,
#| ?output_format: BaseRBIFormat,
#| ) -> void
def initialize(
overloads_strategy: :translate_all,
erase_generic_types: false,
output_format: DefaultRBIFormat.default
)
unless ALLOWED_OVERLOAD_STRATEGIES.include?(overloads_strategy)
Expand All @@ -55,6 +60,7 @@ def initialize(
end

@overloads_strategy = overloads_strategy
@erase_generic_types = erase_generic_types
@output_format = output_format

freeze
Expand Down
Loading