Skip to content

Commit

Permalink
add Country enum
Browse files Browse the repository at this point in the history
  • Loading branch information
patch committed Dec 9, 2014
1 parent 85b215b commit ed1ef5f
Show file tree
Hide file tree
Showing 5 changed files with 522 additions and 7 deletions.
4 changes: 2 additions & 2 deletions META.info
Expand Up @@ -5,8 +5,8 @@
"description" : "Geographical regions and groupings using UN M.49 and CLDR data",
"depends" : [],
"provides" : {
"Geo::Region" : "lib/Geo/Region.pm",
"Geo::Region::Constant" : "lib/Geo/Region/Constant.pm"
"Geo::Region" : "lib/Geo/Region.pm",
"Geo::Region::Enum" : "lib/Geo/Region/Enum.pm"
},
"source-url" : "git://github.com/patch/geo-region-pm6.git"
}
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -77,7 +77,7 @@ The `new` class method is used to construct a Geo::Region object along with the
Geo::Region.new(include => Region::EuropeanUnion)

# countries in Asia (142) plus Russia (RU)
Geo::Region.new(include => (Region::Asia, 'RU'))
Geo::Region.new(include => (Region::Asia, Country::Russia))
```

- `exclude`
Expand Down
2 changes: 1 addition & 1 deletion lib/Geo/Region.pm
Expand Up @@ -198,7 +198,7 @@ codes to be included in the resulting custom region.
Geo::Region.new(include => Region::EuropeanUnion)
# countries in Asia (142) plus Russia (RU)
Geo::Region.new(include => (Region::Asia, 'RU'))
Geo::Region.new(include => (Region::Asia, Country::Russia))
=end item
Expand Down

0 comments on commit ed1ef5f

Please sign in to comment.