| Module | ActiveSupport::CoreExtensions::Integer::EvenOdd |
| In: |
vendor/rails/activesupport/lib/active_support/core_ext/integer/even_odd.rb
|
For checking if a fixnum is even or odd.
# File vendor/rails/activesupport/lib/active_support/core_ext/integer/even_odd.rb, line 14
14: def even?
15: multiple_of? 2
16: end