Method: String#is_lower?
- Defined in:
- lib/thefox-ext/ext/string.rb
#is_lower? ⇒ Boolean
Is a String only made of lower-case charaters.
11 12 13 14 |
# File 'lib/thefox-ext/ext/string.rb', line 11 def is_lower? r = 'a'..'z' self.split('').keep_if{ |c| r.include?(c) }.count == self.length end |