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

instance method Etc::Passwd#shell

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

このユーザのログインシェルを返します。