lib/numb/harshad.rb in numb-0.6.0 vs lib/numb/harshad.rb in numb-0.6.1

- old
+ new

@@ -1,8 +1,8 @@ # coding: utf-8 class Integer def harshad? - return false unless self >= 0 + return false unless self >= 1 (self % digital_sum) == 0 end alias :niven? :harshad? end