Sha256: c6da9f39287605a13698a9269c232d056529b32f0896b236b180274531a55e8d
Contents?: true
Size: 502 Bytes
Versions: 16
Compression:
Stored size: 502 Bytes
Contents
module Trax module Core module EagerLoadNamespace def self.extended(base) source_file_path = caller[0].partition(":")[0] base.module_attribute(:eager_autoload_filepath) { source_file_path } base.module_attribute(:module_path) { ::Pathname.new(::File.path(base.eager_autoload_filepath).gsub(".rb", "")) } ::Trax::Core::FS::Directory.new(base.module_path).files.each do |file| load file end super(base) end end end end
Version data entries
16 entries across 16 versions & 1 rubygems