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