load

load(filename, wrap=false) â true
Instance Public methods

Loads and executes the Ruby program in the file filename. If the filename does not resolve to an absolute path, the file is searched for in the library directories listed in $:. If the optional wrap parameter is true, the loaded script will be executed under an anonymous module, protecting the calling program's global namespace. In no circumstance will any local variables in the loaded file be propagated to the loading environment.

doc_ruby_on_rails
2015-04-17 10:57:45
Comments
Leave a Comment

Please login to continue.