Method: CountryCodeLite.to_number

Defined in:
lib/country_code_lite.rb

.to_number(phone, code, with_plus = true) ⇒ Object



53
54
55
56
57
58
59
# File 'lib/country_code_lite.rb', line 53

def to_number(phone, code, with_plus = true)
  if with_plus
    "+#{code}#{phone}"
  else
    "#{code}#{phone}"
  end
end