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

instance method Etc::Passwd#name

name -> StringRuby 2.5.0 から[permalink][rdoc][edit]

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