lib/sugar-high/array.rb in sugar-high-0.2.12 vs lib/sugar-high/array.rb in sugar-high-0.3.0

- old
+ new

@@ -11,13 +11,21 @@ self.flatten.select_labels.map(&:to_s) end def none? self.flatten.compact.empty? - end + end + + def flat_uniq + self.flatten.compact.uniq + end end -class NilClass +class NilClass + def flat_uniq + [] + end + def none? true end end