Sha256: dc912cc8faf12ae4c5957a6404d8e83b9ab341a7d91198ae605cde2390c87d96
Contents?: true
Size: 555 Bytes
Versions: 5
Compression:
Stored size: 555 Bytes
Contents
require 'alki/loader' module Alki module Reload class LoaderHandler def initialize(root_dir) @root_dir = File.join(root_dir,'') end def handle_path(path) dirs.each do |dir| dir = File.join(dir,'') if path.start_with? dir name = Alki::Loader.lookup_name path return name if name end end nil end def dirs Alki::Loader.registered_paths.select do |d| d.start_with?(@root_dir) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems