class Praxis::BootloaderStages::FileLoader
Attributes
path[R]
Public Class Methods
new(name, application, path: nil)
click to toggle source
Calls superclass method
# File lib/praxis/bootloader_stages/file_loader.rb, line 8 def initialize(name, application, path: nil) super @path = path || Array(name) end
Public Instance Methods
callback_args()
click to toggle source
# File lib/praxis/bootloader_stages/file_loader.rb, line 23 def callback_args application.file_layout[*path] end
execute()
click to toggle 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