Add to_enum unless block
Merge pull request #1968 from suzukaze/add-to_enum-unless-block

Add to_enum unless block