method
add_dir_from_project_root_to_load_path

1.3.0 -
Show latest stable
-
0 notes -
Class: Spec::Runner::Options
- 1.1.4
- 1.1.12
- 1.2.0
- 1.2.8
- 1.3.0 (0)
- 1.3.1 (0)
- What's this?
add_dir_from_project_root_to_load_path(dir, load_path=$LOAD_PATH)
public
Hide source
# File lib/spec/runner/options.rb, line 116 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