# File lib/faker/id_number.rb, line 22 def ssn_valid ssn = regexify(/[0-8]\d{2}-\d{2}-\d{4}/) # We could still have all 0s in one segment or another INVALID_SSN.any? { |regex| regex =~ ssn } ? ssn_valid : ssn end