Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- old code (80% replaced), + preparation for new features
  • Loading branch information
floere committed Nov 15, 2010
1 parent 794d4d6 commit 03dc48d
Show file tree
Hide file tree
Showing 19 changed files with 485 additions and 1,116 deletions.
3 changes: 3 additions & 0 deletions README.textile
Expand Up @@ -4,6 +4,9 @@ h2. Description

This gem can normalize, format and split E164 numbers.

Currently handles AT, CH, DE, FR, LI, US numbers.
And to some extend, all others. Just try if it works for you.

h2. Some examples

h3. Normalizing
Expand Down
8 changes: 5 additions & 3 deletions lib/phony.rb
Expand Up @@ -20,6 +20,8 @@
#
require File.expand_path '../phony/countries/austria', __FILE__
require File.expand_path '../phony/countries/germany', __FILE__
require File.expand_path '../phony/countries/all', __FILE__

require File.expand_path '../phony/country_codes', __FILE__

module Phony
Expand Down Expand Up @@ -58,13 +60,13 @@ def self.formatted! phone_number, options = {}
end

def self.service? number

@codes.service? number.dup
end
def self.mobile? number

@codes.mobile? number.dup
end
def self.landline? number

@codes.landline? number.dup
end

# Returns true if there is a character in the number
Expand Down

0 comments on commit 03dc48d

Please sign in to comment.