Sha256: 7093976b60ed87480e38805c6a04b298a5b1253a04826e144b8ee5bb1a6e94e6

Contents?: true

Size: 471 Bytes

Versions: 5

Compression:

Stored size: 471 Bytes

Contents

require 'hanami/utils'

module Hanami
  module Config
    # Define the load paths where the application should load
    #
    # @since 0.1.0
    # @api private
    class LoadPaths < Utils::LoadPaths
      def initialize(root)
        super()
        @root = root
      end

      def load!
        each do |path|
          Utils.require!(path)
        end
      end

      protected

      def realpath(path)
        @root.join(path).realpath
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hanami-1.0.0.beta2 lib/hanami/config/load_paths.rb
hanami-1.0.0.beta1 lib/hanami/config/load_paths.rb
hanami-0.9.2 lib/hanami/config/load_paths.rb
hanami-0.9.1 lib/hanami/config/load_paths.rb
hanami-0.9.0 lib/hanami/config/load_paths.rb