Sha256: d81f556707159c5452b75a04d8e3678e3a0491c1352e97cb7fea2fb324dadd01
Contents?: true
Size: 216 Bytes
Versions: 15
Compression:
Stored size: 216 Bytes
Contents
class Integer def friendly?(*others) raise ArgumentError unless others.size >= 1 && others.uniq.size == others.size abundancy = self.abundancy others.all? {|o| o.abundancy == abundancy} end end
Version data entries
15 entries across 15 versions & 1 rubygems