Class: Tapioca::Commands::AbstractGem
- Includes:
- RBIFilesHelper, SorbetHelper
- Defined in:
- lib/tapioca/commands/abstract_gem.rb
Direct Known Subclasses
Constant Summary
Constants included from SorbetHelper
SorbetHelper::FEATURE_REQUIREMENTS, SorbetHelper::SORBET_BIN, SorbetHelper::SORBET_EXE_PATH_ENV_VAR, SorbetHelper::SORBET_GEM_SPEC, SorbetHelper::SORBET_PAYLOAD_URL, SorbetHelper::SPOOM_CONTEXT
Instance Method Summary collapse
-
#initialize(gem_names:, exclude:, include_dependencies:, prerequire:, postrequire:, typed_overrides:, outpath:, file_header:, include_doc:, include_loc:, include_exported_rbis:, number_of_workers: nil, auto_strictness: true, dsl_dir: DEFAULT_DSL_DIR, rbi_formatter: DEFAULT_RBI_FORMATTER, halt_upon_load_error: true) ⇒ AbstractGem
constructor
A new instance of AbstractGem.
Methods included from RBIFilesHelper
#duplicated_nodes_from_index, #index_rbi, #index_rbis, #location_to_payload_url, #validate_rbi_files
Methods included from SorbetHelper
#sorbet, #sorbet_path, #sorbet_supports?
Methods inherited from Command
Methods included from Tapioca::CliHelper
#netrc_file, #rbi_formatter, #say_error
Constructor Details
#initialize(gem_names:, exclude:, include_dependencies:, prerequire:, postrequire:, typed_overrides:, outpath:, file_header:, include_doc:, include_loc:, include_exported_rbis:, number_of_workers: nil, auto_strictness: true, dsl_dir: DEFAULT_DSL_DIR, rbi_formatter: DEFAULT_RBI_FORMATTER, halt_upon_load_error: true) ⇒ AbstractGem
Returns a new instance of AbstractGem.
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/tapioca/commands/abstract_gem.rb', line 32 def initialize( gem_names:, exclude:, include_dependencies:, prerequire:, postrequire:, typed_overrides:, outpath:, file_header:, include_doc:, include_loc:, include_exported_rbis:, number_of_workers: nil, auto_strictness: true, dsl_dir: DEFAULT_DSL_DIR, rbi_formatter: DEFAULT_RBI_FORMATTER, halt_upon_load_error: true ) @gem_names = gem_names @exclude = exclude @include_dependencies = include_dependencies @prerequire = prerequire @postrequire = postrequire @typed_overrides = typed_overrides @outpath = outpath @file_header = file_header @number_of_workers = number_of_workers @auto_strictness = auto_strictness @dsl_dir = dsl_dir @rbi_formatter = rbi_formatter super() @bundle = T.let(Gemfile.new(exclude), Gemfile) @existing_rbis = T.let(nil, T.nilable(T::Hash[String, String])) @expected_rbis = T.let(nil, T.nilable(T::Hash[String, String])) @include_doc = T.let(include_doc, T::Boolean) @include_loc = T.let(include_loc, T::Boolean) @include_exported_rbis = include_exported_rbis @halt_upon_load_error = halt_upon_load_error end |