Class: Tapioca::Config

Inherits:
T::Struct
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/tapioca/config.rb

Constant Summary collapse

SORBET_PATH =
T.let("sorbet", String)
SORBET_CONFIG =
T.let("#{SORBET_PATH}/config", String)
TAPIOCA_PATH =
T.let("#{SORBET_PATH}/tapioca", String)
TAPIOCA_CONFIG =
T.let("#{TAPIOCA_PATH}/config.yml", String)
DEFAULT_POSTREQUIRE =
T.let("#{TAPIOCA_PATH}/require.rb", String)
DEFAULT_RBIDIR =
T.let("#{SORBET_PATH}/rbi", String)
DEFAULT_DSLDIR =
T.let("#{DEFAULT_RBIDIR}/dsl", String)
DEFAULT_GEMDIR =
T.let("#{DEFAULT_RBIDIR}/gems", String)
DEFAULT_TODOSPATH =
T.let("#{DEFAULT_RBIDIR}/todo.rbi", String)
DEFAULT_OVERRIDES =
T.let({
  # ActiveSupport overrides some core methods with different signatures
  # so we generate a typed: false RBI for it to suppress errors
  "activesupport" => "false",
}.freeze, T::Hash[String, String])

Instance Method Summary collapse

Instance Method Details

#outpathObject



18
19
20
21
# File 'lib/tapioca/config.rb', line 18

def outpath
  @outpath = T.let(@outpath, T.nilable(Pathname))
  @outpath ||= Pathname.new(outdir)
end