lib/a2z/helpers.rb in a2z-0.0.4 vs lib/a2z/helpers.rb in a2z-0.1.0

- old
+ new

@@ -12,7 +12,11 @@ word.gsub!(/([a-z\d])([A-Z])/, '\1_\2') word.tr!('-', '_') word.downcase! end end + + def array_wrap(value) + value.kind_of?(Array) ? value : [value].compact + end end end