I was using phony to format phone numbers (meaning, if I put in xxx-xxx-xxxx it would convert to a string, and also tell if there is a (1) before to remove it).
But
def format_phone_numbers(n) "(#{n[-10..-8]}) #{n[-7..-5]}-#{n[-4..-1]}" end format_phone_numbers('555555555555')
"(555) 555-5555"