VOOZH about

URL: https://rubychallenger.blogspot.com/search/label/require

⇱ The Ruby Challenger: require


Showing posts with label require. Show all posts
Showing posts with label require. Show all posts

Tuesday, March 6, 2012

A little bit on require behavior

require filename will:
  • return true when it finds filename;
  • return false when it already loaded filename;
  • raise LoadError when it doesn't find filename.
That was not properly documented; the official documentation lean us to guess it would return false when the file is not found, and that's not the case.
Subscribe to: Posts (Atom)