Class: Tapioca::Commands::AbstractDsl Abstract
- Inherits:
-
CommandWithoutTracker
- Object
- Command
- CommandWithoutTracker
- Tapioca::Commands::AbstractDsl
- Includes:
- RBIFilesHelper, SorbetHelper
- Defined in:
- lib/tapioca/commands/abstract_dsl.rb
Overview
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(requested_constants:, requested_paths:, outpath:, only:, exclude:, file_header:, tapioca_path:, skip_constant: [], quiet: false, verbose: false, number_of_workers: nil, auto_strictness: true, gem_dir: DEFAULT_GEM_DIR, rbi_formatter: DEFAULT_RBI_FORMATTER, app_root: ".", halt_upon_load_error: true, compiler_options: {}, lsp_addon: false) ⇒ AbstractDsl
constructor
: (requested_constants: Array, requested_paths: Array, outpath: Pathname, only: Array, exclude: Array, file_header: bool, tapioca_path: String, ?skip_constant: Array, ?quiet: bool, ?verbose: bool, ?number_of_workers: Integer?, ?auto_strictness: bool, ?gem_dir: String, ?rbi_formatter: RBIFormatter, ?app_root: String, ?halt_upon_load_error: bool, ?compiler_options: Hash[String, untyped], ?lsp_addon: bool) -> void.
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(requested_constants:, requested_paths:, outpath:, only:, exclude:, file_header:, tapioca_path:, skip_constant: [], quiet: false, verbose: false, number_of_workers: nil, auto_strictness: true, gem_dir: DEFAULT_GEM_DIR, rbi_formatter: DEFAULT_RBI_FORMATTER, app_root: ".", halt_upon_load_error: true, compiler_options: {}, lsp_addon: false) ⇒ AbstractDsl
: (requested_constants: Array, requested_paths: Array, outpath: Pathname, only: Array, exclude: Array, file_header: bool, tapioca_path: String, ?skip_constant: Array, ?quiet: bool, ?verbose: bool, ?number_of_workers: Integer?, ?auto_strictness: bool, ?gem_dir: String, ?rbi_formatter: RBIFormatter, ?app_root: String, ?halt_upon_load_error: bool, ?compiler_options: Hash[String, untyped], ?lsp_addon: bool) -> void
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/tapioca/commands/abstract_dsl.rb', line 12 def initialize( requested_constants:, requested_paths:, outpath:, only:, exclude:, file_header:, tapioca_path:, skip_constant: [], quiet: false, verbose: false, number_of_workers: nil, auto_strictness: true, gem_dir: DEFAULT_GEM_DIR, rbi_formatter: DEFAULT_RBI_FORMATTER, app_root: ".", halt_upon_load_error: true, compiler_options: {}, lsp_addon: false ) @requested_constants = requested_constants @requested_paths = requested_paths @outpath = outpath @only = only @exclude = exclude @file_header = file_header @tapioca_path = tapioca_path @quiet = quiet @verbose = verbose @number_of_workers = number_of_workers @auto_strictness = auto_strictness @gem_dir = gem_dir @rbi_formatter = rbi_formatter @app_root = app_root @halt_upon_load_error = halt_upon_load_error @skip_constant = skip_constant @compiler_options = @lsp_addon = lsp_addon super() end |