It's adding the current file's directory to the load path. $:
represents the load path (which is an array) and unshift
prepends to the beginning of the array.
The reason it's there (and at the top) is so that all those requires needn't worry about the path.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…