Sha256: 89fb07a0a52f2b86c1de6f9764a7c4987101f1499098595836552bf4f77cc44b
Contents?: true
Size: 592 Bytes
Versions: 23
Compression:
Stored size: 592 Bytes
Contents
# frozen_string_literal: true module Praxis module BootloaderStages class FileLoader < Stage attr_reader :path def initialize(name, application, path: nil) super @path = path || Array(name) end 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 def callback_args application.file_layout[*path] end end end end
Version data entries
23 entries across 23 versions & 1 rubygems