module Kozo

Constants

VERSION

Attributes

loader[R]

Public Class Methods

container() click to toggle source
# File lib/kozo.rb, line 18
def container
  @container ||= Container.new
end
env() click to toggle source
# File lib/kozo.rb, line 22
def env
  @env ||= Environment.new
end
logger() click to toggle source
# File lib/kozo.rb, line 26
def logger
  @logger ||= Logger.new
end
options() click to toggle source
# File lib/kozo.rb, line 14
def options
  @options ||= Options.new
end
root() click to toggle source
# File lib/kozo.rb, line 10
def root
  @root ||= Pathname.new(File.expand_path(File.join("..", ".."), __FILE__))
end
setup() click to toggle source
# File lib/kozo.rb, line 30
def setup
  @loader = Zeitwerk::Loader.for_gem

  instance_eval(File.read(root.join("config/inflections.rb")))

  loader.enable_reloading
  loader.setup
  loader.eager_load

  container.instance_eval(File.read(root.join("config/dependencies.rb")))
end