simplest way to check for just spaces in ruby
- by user301752
So I know in ruby that x.nil? will test if x is null.
What is the simplest way to test if x equals ' ', or ' ', or ' ', etc?
Basically, I'm wondering what the best way to test if a variable is all whitespace?