Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/format.rb

Overview

Improvements to the String class.

Author:

  • Arcterus

Version:

  • 2012-09-11

Instance Method Summary collapse

Instance Method Details

#is_spaceBoolean

Determines whether the String is entirely blank.

Returns:

  • (Boolean)

    whether or not the String is blank



13
14
15
# File 'lib/format.rb', line 13

def is_space
    self =~ /^[[:blank:]]+$/ ? true : false
end