Class: Tapioca::Loaders::Gem

Inherits:
Loader
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/tapioca/loaders/gem.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(bundle:, prerequire:, postrequire:, default_command:, halt_upon_load_error:) ⇒ Object



21
22
23
24
25
26
27
28
29
30
# File 'lib/tapioca/loaders/gem.rb', line 21

def load_application(bundle:, prerequire:, postrequire:, default_command:, halt_upon_load_error:)
  loader = new(
    bundle: bundle,
    prerequire: prerequire,
    postrequire: postrequire,
    default_command: default_command,
    halt_upon_load_error: halt_upon_load_error,
  )
  loader.load
end

Instance Method Details

#loadObject



34
35
36
# File 'lib/tapioca/loaders/gem.rb', line 34

def load
  require_gem_file
end