Ruby 2.5.0 リファレンスマニュアル > ライブラリ一覧 > stringioライブラリ > StringIOクラス > pid

instance method StringIO#pid

pid -> nil[permalink][rdoc]

何もせず nil を返します。