Il giorno mercoledì 17 settembre 2014 16:33:31 UTC+2, Mohamed Wael Khobalatte ha scritto: > > Where did that method come from? All other methods are Ruby methods. >
Sorry, I've seen only now that it is an ActiveSupport extension of Integer. # File activesupport/lib/active_support/core_ext/integer/multiple.rb, line 7 def multiple_of?(number) number != 0 ? self % number == 0 : zero? end -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-core@googlegroups.com. Visit this group at http://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.