Last active
August 29, 2015 14:16
-
-
Save RussellAndrewEdson/d54d4b989f6a84ebe282 to your computer and use it in GitHub Desktop.
Checking for a MIU string in the MIU system.
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
# Returns true if the given string only contains the characters M, I, U. | |
def miu_string?(str) | |
!(str.match(/[^MIU]/)) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment