Sha256: c7c5c123befe4531c36023cb2cb9d93d963b5be89c23a4236a7eeb9835d7fcb8
Contents?: true
Size: 566 Bytes
Versions: 40
Compression:
Stored size: 566 Bytes
Contents
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
40 entries across 40 versions & 1 rubygems