I was reading the following tutorial.
It talked about including files in a Ruby
file like require
:
require(string)
=>true
orfalse
Ruby tries to load the library named string, returning
true
if successful. If the filename does not resolve to an absolute path, it will be searched for in the directories listed in$:
. If the file has the extension ".rb", it is loaded as a source file; if the extension is ".so", ".o", or ".dll", or whatever the default shared library extension is on the current platform, Ruby loads the shared library as a Ruby extension. Otherwise, Ruby tries adding ".rb", ".so", and so on to the name. The name of the loaded feature is added to the array in$:
.
I just want to know what is $:
in Ruby and what does $:
means.