class Ufo::Autoloader
Public Class Methods
setup()
click to toggle source
# File lib/ufo/autoloader.rb, line 13 def setup loader = Zeitwerk::Loader.new loader.inflector = Inflector.new loader.push_dir(File.dirname(__dir__)) # lib helpers = "#{ufo_root}/.ufo/helpers" loader.push_dir(helpers) if File.exist?(helpers) # project helpers loader.setup end
ufo_root()
click to toggle source
Autoloader
runs so early that Ufo.root is not available, so we must declare it here
# File lib/ufo/autoloader.rb, line 25 def ufo_root ENV['UFO_ROOT'] || '.' end