class Alki::Reload::LoadPathHandler
Attributes
dirs[R]
Public Class Methods
new(root_dir,dirs)
click to toggle source
# File lib/alki/reload/load_path_handler.rb, line 4 def initialize(root_dir,dirs) @dirs = dirs.map{|d| File.join(root_dir,d,'')}.select{|d| Dir.exist? d } end
Public Instance Methods
handle_path(path)
click to toggle source
# File lib/alki/reload/load_path_handler.rb, line 10 def handle_path(path) @dirs.each do |dir| if path.start_with? dir return path[dir.size..-1].chomp('.rb') end end nil end