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