Ruby on Rails latest stable (v7.1.3.2) - 0 notes

Module deprecated or moved

This module is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

For checking if a fixnum is even or odd.

  2.even?  # => true
  2.odd?   # => false
  1.even?  # => false
  1.odd?   # => true
  0.even?  # => true
  0.odd?   # => false
  -1.even? # => false
  -1.odd?  # => true
Show files where this module is defined (1 file)
Register or log in to add new notes.