Class: Tapioca::Loader
- Inherits:
-
Object
- Object
- Tapioca::Loader
- Extended by:
- T::Sig
- Defined in:
- lib/tapioca/loader.rb
Instance Method Summary collapse
-
#initialize(gemfile) ⇒ Loader
constructor
A new instance of Loader.
- #load_bundle(initialize_file, require_file) ⇒ Object
Constructor Details
#initialize(gemfile) ⇒ Loader
Returns a new instance of Loader.
9 10 11 |
# File 'lib/tapioca/loader.rb', line 9 def initialize(gemfile) @gemfile = T.let(gemfile, Tapioca::Gemfile) end |
Instance Method Details
#load_bundle(initialize_file, require_file) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/tapioca/loader.rb', line 14 def load_bundle(initialize_file, require_file) require(initialize_file) if initialize_file && File.exist?(initialize_file) load_rails load_rake require_bundle require(require_file) if require_file && File.exist?(require_file) load_rails_engines end |