Skip to content

Commit

Permalink
Add option :parentheses to country.
Browse files Browse the repository at this point in the history
  • Loading branch information
floere committed May 22, 2015
1 parent d89edb5 commit 251f025
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/phony/country.rb
Expand Up @@ -4,7 +4,7 @@ module Phony
#
class Country

attr_reader :format, :space, :local_space
attr_reader :format, :space, :local_space, :parentheses
attr_accessor :codes

#
Expand All @@ -26,10 +26,13 @@ def | other
#
def with cc, options = {}
@cc = cc

@invalid_ndcs = options[:invalid_ndcs]

@format = options[:format]
@space = options[:space]
@local_space = options[:local_space]
@parentheses = options[:parentheses]
end

# A number is split with the code handlers as given in the initializer.
Expand Down

0 comments on commit 251f025

Please sign in to comment.