Class: Array

Inherits:
Object show all
Defined in:
lib/doing/good.rb

Direct Known Subclasses

Doing::Items, Doing::Note

Instance Method Summary collapse

Instance Method Details

#good? ⇒ Boolean

Tests if object is nil or empty

Returns:

  • (Boolean) —

    true if object is defined and has content



36
37
38
# File 'lib/doing/good.rb', line 36

def good?
  !nil? && !empty?
end