class Integer
Public Instance Methods
to_phone(country_code = '1')
click to toggle source
# File lib/extensions/integer.rb, line 3 def to_phone country_code = '1' return ToPhone::Parser.to_phone(self.to_s, country_code) end
to_phone_s(country_code = '1')
click to toggle source
# File lib/extensions/integer.rb, line 7 def to_phone_s country_code = '1' phone = self.to_phone(country_code) return phone.raw if phone end