Ruby 2.5.0 リファレンスマニュアル > ライブラリ一覧 > mkmfライブラリ > Kernelモジュール > $srcdir (private)
$srcdir -> String
Ruby インタプリタを make したときのソースディレクトリです。