`Array.wrap`: A nicer way to append valid values to collections
To keep it short: >> Array.wrap(nil) => [] >> Array.wrap(1) => [1] >> Array.wrap([1]) => [1] Might come in handy when you need to append a valid value to collection without extra fuss like `[(value if condition)].flatten` or similar. Please keep in mind `Array::wrap` is an ActiveSupport extension. >> Array.ri :wrap (from gem activesupport-3.2.8) ------------------------------------------------------------------------------ wrap(object) ------------------------------------------------------------------------------ Wraps its argument in an array unless it is already an array (or array-like). etc.















