Skip to content
Browse files

AS guide: Array.wrap vs splat is only valid for 1.8

  • Loading branch information...
1 parent 1fbb068 commit d2f55e7eee3f82a9a8cc53a2c48294685d75b15e @fxn fxn committed Aug 25, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/active_support_core_extensions.textile
2 railties/guides/source/active_support_core_extensions.textile
@@ -2226,7 +2226,7 @@ There's also a related idiom that uses the splat operator:
-which returns +[nil]+ for +nil+, and calls to <tt>Array(object)</tt> otherwise
+which in Ruby 1.8 returns +[nil]+ for +nil+, and calls to <tt>Array(object)</tt> otherwise. (Please if you know the exact behavior in 1.9 contact fxn.)
Thus, in this case the behavior is different for +nil+, and the differences with <tt>Kernel#Array</tt> explained above apply to the rest of +object+s.

0 comments on commit d2f55e7

Please sign in to comment.
Something went wrong with that request. Please try again.