public Method

Initializer.set_load_path

Set the $LOAD_PATH based on the value of Configuration#load_paths. Duplicates are removed.

Source Code

# File initializer.rb, line 112
def set_load_path
  load_paths = configuration.load_paths + configuration.framework_paths
  load_paths.reverse_each { |dir| $LOAD_PATH.unshift(dir) if File.directory?(dir) }
  $LOAD_PATH.uniq!
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.