summaryrefslogtreecommitdiffhomepage
path: root/math_plus.rb
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2021-05-08 05:21:24 -0400
committerrealtradam <[email protected]>2021-05-08 05:21:24 -0400
commitb1ac1abcdbe11c0bb465fe042eaba2ab9e012a5a (patch)
treee10790fc1858649874f20ca36efd09cc3a07cfa0 /math_plus.rb
parent625042cef2f11211ab4cae145ea5cf309994312e (diff)
downloadtileset-map-editor-master.tar.gz
tileset-map-editor-master.zip
tiles fit to menuHEADmaster
Diffstat (limited to 'math_plus.rb')
-rw-r--r--math_plus.rb5
1 files changed, 5 insertions, 0 deletions
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