Sha256: 0ff51b4a67f86b2979b89989c70dba0cbab9b67fb171f1470fca22ca528c5e7e
Contents?: true
Size: 297 Bytes
Versions: 4
Compression:
Stored size: 297 Bytes
Contents
require 'sugar-high/kind_of' class Array def to_symbols option=nil res = self.flatten 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) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sugar-high-0.2.7 | lib/sugar-high/array.rb |
sugar-high-0.2.6 | lib/sugar-high/array.rb |
sugar-high-0.2.5 | lib/sugar-high/array.rb |
sugar-high-0.2.4 | lib/sugar-high/array.rb |