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

instance method Etc::Passwd#dir=

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

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