Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > 組み込みライブラリ > Integerクラス > odd?

instance method Integer#odd?

odd? -> bool

自身が奇数であれば真を返します。 そうでない場合は偽を返します。

class Integer