lib/validates_cpf/cpf.rb in validates_cpf-0.0.1 vs lib/validates_cpf/cpf.rb in validates_cpf-0.1.0
- old
+ new
@@ -16,9 +16,11 @@
def number
@number
end
+ private
+
def check_cpf
return false if @cleaned_number.length != 11 or @cleaned_number.scan(/\d/).uniq.length == 1
@result == first_digit_verifier + second_digit_verifier
end
\ No newline at end of file