Method: String#downcase?
- Defined in:
- lib/core/facets/string/capitalized.rb
#downcase? ⇒ Boolean
Return true if the string is lowercase (downcase), otherwise false.
"THIS".downcase? #=> false
"This".downcase? #=> false
"this".downcase? #=> true
CREDIT: Phil Tomson
26 27 28 |
# File 'lib/core/facets/string/capitalized.rb', line 26 def downcase? downcase == self end |