Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/format.rb
Overview
Improvements to the String class.
Instance Method Summary collapse
-
#is_space ⇒ Boolean
Determines whether the String is entirely blank.
Instance Method Details
#is_space ⇒ Boolean
Determines whether the String is entirely blank.
13 14 15 |
# File 'lib/format.rb', line 13 def is_space self =~ /^[[:blank:]]+$/ ? true : false end |