method
convert_with_area_code
v4.2.1 -
Show latest stable
- Class:
ActiveSupport::NumberHelper::NumberToPhoneConverter
convert_with_area_code(number)private
No documentation available.
# File activesupport/lib/active_support/number_helper/number_to_phone_converter.rb, line 20
def convert_with_area_code(number)
number.gsub!(/(\d{1,3})(\d{3})(\d{4}$)/,"(\\1) \\2#{delimiter}\\3")
number
end