class WhoAmI::Function::LoadInitializers
Public Class Methods
new(config, root)
click to toggle source
# File lib/who_am_i/function/load_initializers.rb, line 6 def initialize(config, root) @config = config @root = root end
Public Instance Methods
call()
click to toggle source
# File lib/who_am_i/function/load_initializers.rb, line 11 def call paths = @config.load_environment_manual_initializers paths.each do |path| abspath = File.expand_path(path, @root) if File.exist?(abspath) load abspath end end end