method
add_dir_from_project_root_to_load_path
1.3.1 -
Show latest stable
- Class:
Spec::Runner::Options
add_dir_from_project_root_to_load_path(dir, load_path=$LOAD_PATH)public
No documentation available.
# File lib/spec/runner/options.rb, line 117
def add_dir_from_project_root_to_load_path(dir, load_path=$LOAD_PATH) # :nodoc:
return if project_root.nil?
full_dir = File.join(project_root, dir)
load_path.unshift full_dir unless load_path.include?(full_dir)
end