Flowdock
method

convert_without_area_code

Importance_0
v4.2.7 - Show latest stable - 0 notes - Class: NumberToPhoneConverter
convert_without_area_code(number) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.