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

instance method Etc::Passwd#name=

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

このユーザのログイン名を設定します。