-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Treat string enum values as their to_s representation * Try to coerce to an integer first, then try parsing A valid enum value name can't start with a digit, so theoretically this is safe. Integers will only have digits (and a leading digit), so the two are mutually exclusive. * Add tests for parsing enum values
- Loading branch information
1 parent
8c6aba6
commit 1fc856f
Showing
2 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters