class Praxis::BootloaderStages::FileLoader
Attributes
Public Class Methods
Source
# File lib/praxis/bootloader_stages/file_loader.rb, line 8 def initialize(name, application, path: nil) super @path = path || Array(name) end
Calls superclass method
Public Instance Methods
Source
# File lib/praxis/bootloader_stages/file_loader.rb, line 23 def callback_args application.file_layout[*path] end
Source
# File lib/praxis/bootloader_stages/file_loader.rb, line 13 def execute application.file_layout[*path].each do |file| next if application.loaded_files.include?(file) next unless file.extname == '.rb' require file application.loaded_files << file end end