method
multiple_of?
Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: ActiveSupport::CoreExtensions::Integer::EvenOdd
multiple_of?(number)
public
Hide source
# File activesupport/lib/active_support/core_ext/integer/even_odd.rb, line 15 def multiple_of?(number) self % number == 0 end