I had a need to pull city and state separately from a zip code and I didn't want to do any string splitting or multiple searches. So, I added support for handling multiple options when calling String#to_region and I thought it might be useful to everyone.
This change keeps the existing API intact with no changes, but will now return an array of results if you pass multiple options.
@jgv thanks for providing this great gem!
I had a need to pull city and state separately from a zip code and I didn't want to do any string splitting or multiple searches. So, I added support for handling multiple options when calling
String#to_region
and I thought it might be useful to everyone.This change keeps the existing API intact with no changes, but will now return an array of results if you pass multiple options.