Method: String#good?

Defined in:
lib/doing/good.rb

#good?Boolean

Tests if object is nil or empty

Returns:

  • (Boolean)

    true if object is defined and has content



46
47
48
# File 'lib/doing/good.rb', line 46

def good?
  !strip.empty?
end