Module#private_constant (Ruby 3.3 リファレンスマニュアル)

name で指定した定数の可視性を private に変更します。