Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.25 KB | None | 0 0
  1. #!/usr/bin/env ruby
  2.  
  3. require 'rubygems'
  4. require 'iso_country_codes'
  5.  
  6. code = IsoCountryCodes.find('gb')
  7.  
  8. country_code_prefix = code.numeric
  9.  
  10. country_code_prefix= country_code_prefix.gsub("+", 'replaced')  
  11. puts country_code_prefix
  12. puts code.name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement