lib/canner/util.rb in canner-0.3.0 vs lib/canner/util.rb in canner-0.4.0

- old
+ new

@@ -1,21 +1,9 @@ class Util # ensures whatever is passed in comes out an array of symbols class << self def prepare(str) - symbolize(arrayify(str)) + Array(str).flatten.map(&:to_sym) end - - # ensures the array elements are symbols - def symbolize(strings) - strings.map{|s| s.to_sym} - end - - # ensure given roles are in the form of an array - def arrayify(roles) - Array.wrap(roles).flatten - end - end - end