Sha256: 8d51def319e5be0c7318b9c65acaf8dadc1205881413bcf7329c14fa05fa37c2
Contents?: true
Size: 961 Bytes
Versions: 15
Compression:
Stored size: 961 Bytes
Contents
require 'hanami/utils' module Hanami # @api private module Config # Define the load paths where the application should load # # @since 0.1.0 # @api private class LoadPaths < Utils::LoadPaths # Overrides Utils::LoadPath initialize method # # @see Hanami::Utils::LoadPaths#initialize # # @since 0.1.0 # @api private def initialize(root) super() @root = root end # Requires relative @pats [Utils::Kernel.Array] variable via each method # # @see Hanami::Utils::LoadPaths#each # # @since 0.1.0 # @api private def load! each do |path| Utils.require!(path) end end protected # Overrides Utils::LoadPath realpath method # # @see Hanami::Utils::LoadPaths#realpath # # @api private def realpath(path) @root.join(path).realpath end end end end
Version data entries
15 entries across 15 versions & 1 rubygems