Sha256: 7e73854b48719f14cdd21943815d1956dbf8837bd281320524dc53e9c694d2e3

Contents?: true

Size: 163 Bytes

Versions: 206

Compression:

Stored size: 163 Bytes

Contents

class Integer
  # Check whether the integer is evenly divisible by the argument.
  def multiple_of?(number)
    number != 0 ? self % number == 0 : zero?
  end
end

Version data entries

206 entries across 193 versions & 10 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/core_ext/integer/multiple.rb
classiccms-0.7.4 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/core_ext/integer/multiple.rb
classiccms-0.7.3 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/core_ext/integer/multiple.rb
social_url_stats-0.0.1 vendor/ruby/1.9.1/gems/activesupport-3.0.0/lib/active_support/core_ext/integer/multiple.rb
classiccms-0.7.2 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/core_ext/integer/multiple.rb
classiccms-0.7.1 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/core_ext/integer/multiple.rb
classiccms-0.7.0 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/core_ext/integer/multiple.rb
activesupport-3.1.12 lib/active_support/core_ext/integer/multiple.rb
activesupport-3.1.11 lib/active_support/core_ext/integer/multiple.rb
activesupport-3.0.20 lib/active_support/core_ext/integer/multiple.rb
activesupport-3.1.10 lib/active_support/core_ext/integer/multiple.rb
activesupport-3.0.19 lib/active_support/core_ext/integer/multiple.rb
activesupport-3.1.9 lib/active_support/core_ext/integer/multiple.rb
activesupport-3.0.18 lib/active_support/core_ext/integer/multiple.rb
classiccms-0.6.9 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/core_ext/integer/multiple.rb
dirty_history-0.7.3 dirty_history/ruby/1.9.1/gems/activesupport-3.1.1/lib/active_support/core_ext/integer/multiple.rb
dirty_history-0.7.2 dirty_history/ruby/1.9.1/gems/activesupport-3.1.1/lib/active_support/core_ext/integer/multiple.rb
dirty_history-0.7.1 dirty_history/ruby/1.9.1/gems/activesupport-3.1.1/lib/active_support/core_ext/integer/multiple.rb
dirty_history-0.7.0 dirty_history/ruby/1.9.1/gems/activesupport-3.1.1/lib/active_support/core_ext/integer/multiple.rb
classiccms-0.6.8 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/core_ext/integer/multiple.rb