Usually be seen in .gemspec file. eg. i18n.gemspec.
$: << File.expand_path('../lib', __FILE__)
Usually be seen in .gemspec file. eg. i18n.gemspec.
$: << File.expand_path('../lib', __FILE__)
$:
is equivalent to $LOAD_PATH
, i.e. the list of directories that you can require
files from without giving a more specific path. You'll find the Ruby QuickRef useful for other predefined variables you may run into.
the above shortcuts are an unfortunate Perl anachronism! There are "English Names" available for some of them, which are self-explanatory, and which should be used if available.
see also: https://docs.ruby-lang.org/en/2.4.0/globals_rdoc.html