How to detect in Ruby if a sentence has all lower case letters? Likewise, how to detect if a sentence has all uppercase letters?
You can assume this is an English sentence with no foreign characters.
Simple question, I know. Please excuse brevity.
How to detect in Ruby if a sentence has all lower case letters? Likewise, how to detect if a sentence has all uppercase letters?
You can assume this is an English sentence with no foreign characters.
Simple question, I know. Please excuse brevity.