what does this line mean?
$LOAD_PATH.unshift File.expand_path('../../../lib', __FILE__)
what does this line mean?
$LOAD_PATH.unshift File.expand_path('../../../lib', __FILE__)
$LOAD_PATH
is an array. Try running $LOAD_PATH.class
in irb to prove it to yourself. The unshift method of Array adds something to the beginning of the array. https://ruby-doc.org/core-2.2.0/Array.html#method-i-unshift
In this case, it adds the absolute path of the ruby file, up three directories, then down into lib. https://ruby-doc.org/core-2.2.0/File.html#method-c-expand_path