lib/sugar-high/array.rb in sugar-high-0.2.7 vs lib/sugar-high/array.rb in sugar-high-0.2.8
- old
+ new
@@ -6,8 +6,8 @@
res.map!{|a| a.kind_of?(Fixnum) ? "_#{a}" : a} if option == :num
res.select_labels.map(&:to_s).map(&:to_sym)
end
def to_strings option=nil
- self.select_labels.map(&:to_s)
+ self.flatten.select_labels.map(&:to_s)
end
end
\ No newline at end of file