Browse files

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

  • Loading branch information...
1 parent 241dfa3 commit 8bad8ac7580fd00411e7c877118a3276f0c8580f @fxn fxn committed Aug 25, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 8bad8ac

Please sign in to comment.