Introduce Array.wrap(foo) to wrap the argument in an array unless it's already...
Introduce Array.wrap(foo) to wrap the argument in an array unless it's already an array. Wraps nil as an empty array. Use instead of Array(foo) and foo.to_a since they treat String as Enumerable.
Showing
想要评论请 注册 或 登录