Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > irb/input-methodライブラリ > IRB::ReadlineInputMethodクラス > gets

instance method IRB::ReadlineInputMethod#gets

gets -> String

標準入力から文字列を 1 行読み込みます。

class IRB::ReadlineInputMethod