Ruby Newbie homepage Ruby Newbie homepage

How to use

Quick guide

Official content
Returns true if int is an odd number.
 
               # File numeric.rb, line 164
def odd?
  Primitive.attr! 'inline'
  Primitive.cexpr! 'rb_int_odd_p(self)'
end
            

Was this page useful?