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

instance method IO#winsize

winsize -> [Integer, Integer] [added by io/console]

端末のサイズを [rows, columns] で返します。

class IO