class Array
Public Instance Methods
vacant?()
click to toggle source
Checks whether an array contains non-nil elements @return true
if an array does not contain non-nils and false
otherwise
# File lib/qipowl/core/monkeypatches.rb, line 15 def vacant? (self.flatten - [nil]).empty? end