Ruby 4.1 リファレンスマニュアル

instance method Etc::Passwd#dir=

dir=(dir)Ruby 2.5.0 から[permalink][rdoc][edit]

このユーザのホームディレクトリを表すパスを設定します。