Class: Tapioca::Loaders::Dsl

Inherits:
Loader
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/tapioca/loaders/dsl.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from GemHelper

#gem_in_app_dir?, #gem_in_bundle_path?, #gem_in_ruby_path?, #to_realpath

Methods included from CliHelper

#netrc_file, #rbi_formatter, #say_error

Class Method Details

.load_application(tapioca_path:, eager_load: true, app_root: ".", halt_upon_load_error: true) ⇒ Object



15
16
17
18
19
20
21
22
23
# File 'lib/tapioca/loaders/dsl.rb', line 15

def load_application(tapioca_path:, eager_load: true, app_root: ".", halt_upon_load_error: true)
  loader = new(
    tapioca_path: tapioca_path,
    eager_load: eager_load,
    app_root: app_root,
    halt_upon_load_error: halt_upon_load_error,
  )
  loader.load
end

Instance Method Details

#loadObject



27
28
29
30
31
# File 'lib/tapioca/loaders/dsl.rb', line 27

def load
  load_dsl_extensions
  load_application
  load_dsl_compilers
end