Skip to content

Instantly share code, notes, and snippets.

@RussellAndrewEdson
Last active August 29, 2015 14:16
Show Gist options
  • Save RussellAndrewEdson/d54d4b989f6a84ebe282 to your computer and use it in GitHub Desktop.
Save RussellAndrewEdson/d54d4b989f6a84ebe282 to your computer and use it in GitHub Desktop.
Checking for a MIU string in the MIU system.
# 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