Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > matrixライブラリ > Matrixクラス > empty?
empty? -> bool
Returns +true+ if this is an empty matrix, i.e. if the number of rows or the number of columns is 0.