Ruby 1.9.3 リファレンスマニュアル > ライブラリ一覧 > io/consoleライブラリ > IOクラス > getch

instance method IO#getch

getch -> String [added by io/console]

raw モードで一文字読み込んだ結果を返します。

class IO