lib/sugar-high/array.rb in sugar-high-0.2.0 vs lib/sugar-high/array.rb in sugar-high-0.2.1
- old
+ new
@@ -1,5 +1,7 @@
-class Array
+require 'sugar-high/kind_of'
+
+class Array
def to_symbols option=nil
res = self.flatten
res = case option
when :num
res.map{|a| a.kind_of?(Fixnum) ? "_#{a}" : a}
\ No newline at end of file