We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alberta, British Columbia, South Carolina are all problematic.
Carmen::state_name('BC') => nil Carmen::state_name('MA') => "Massachusetts" Carmen::state_name('AB') => nil
Not sure how state_name is supposed to be used if so many examples return bad results.
The text was updated successfully, but these errors were encountered:
You'll need to specify the country to use anything other than the default, which is the US:
>> Carmen::state_name('AB', 'CA') => 'Alberta'
Or you can set Canada to the default, and omit the second argument:
>> Carmen.default_country = 'CA' >> Carmen::state_name('AB') => "Alberta"
The docs aren't the best, but I think they cover this pretty well. Suggestions obviously welcomed!
Sorry, something went wrong.
No branches or pull requests
Alberta, British Columbia, South Carolina are all problematic.
Not sure how state_name is supposed to be used if so many examples return bad results.
The text was updated successfully, but these errors were encountered: