From b1ac1abcdbe11c0bb465fe042eaba2ab9e012a5a Mon Sep 17 00:00:00 2001 From: realtradam Date: Sat, 8 May 2021 05:21:24 -0400 Subject: tiles fit to menu --- math_plus.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 math_plus.rb (limited to 'math_plus.rb') diff --git a/math_plus.rb b/math_plus.rb new file mode 100644 index 0000000..eac8d21 --- /dev/null +++ b/math_plus.rb @@ -0,0 +1,5 @@ +module MathPlus + def self.divisors_of(num) + (1..num).select { |n| (num % n).zero? } + end +end -- cgit v1.2.3