summaryrefslogtreecommitdiffhomepage
path: root/math_plus.rb
blob: eac8d21b41164d36f893f30723da27dc6c72f28d (plain)
1
2
3
4
5
module MathPlus
  def self.divisors_of(num)
    (1..num).select { |n| (num % n).zero? }
  end
end