lib/sugar-high/array.rb in sugar-high-0.2.10 vs lib/sugar-high/array.rb in sugar-high-0.2.11

- old
+ new

@@ -8,6 +8,18 @@ end def to_strings option=nil self.flatten.select_labels.map(&:to_s) end -end \ No newline at end of file + + def none? + self.flatten.compact.empty? + end +end + +class NilClass + def none? + true + end +end + +