class String

Improvements to the String class.

@author Arcterus @version 2012-09-11

Public Instance Methods

is_space() click to toggle source

Determines whether the String is entirely blank.

@return [Boolean] whether or not the String is blank

# File lib/format.rb, line 13
def is_space
    self =~ /^[[:blank:]]+$/ ? true : false
end