Ruby 1.9.3 Reference Manual > All Libraries > Builtin Library > class Integer > odd?

instance method Integer#odd?

odd? -> bool

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