Method: PdfFill::Forms::FormHelper::PhoneNumberFormatting#expand_phone_number
- Defined in:
- lib/pdf_fill/forms/form_helper.rb
#expand_phone_number(phone_number) ⇒ Object
133 134 135 136 137 138 139 140 |
# File 'lib/pdf_fill/forms/form_helper.rb', line 133 def (phone_number) phone_number = phone_number.delete('^0-9') { 'phone_area_code' => phone_number[0..2], 'phone_first_three_numbers' => phone_number[3..5], 'phone_last_four_numbers' => phone_number[6..9] } end |