Permalink
Browse files

remove ruby 1.8 example from Array.wrap documentation

  • Loading branch information...
1 parent 6e9bbe3 commit 693a68f24b399cd86fa0daf010f408ab5d3b3aaf @lest lest committed Jan 5, 2012
Showing with 0 additions and 3 deletions.
  1. +0 −3 railties/guides/source/active_support_core_extensions.textile
View
3 railties/guides/source/active_support_core_extensions.textile
@@ -2238,9 +2238,6 @@ The last point is particularly worth comparing for some enumerables:
<ruby>
Array.wrap(:foo => :bar) # => [{:foo => :bar}]
Array(:foo => :bar) # => [[:foo, :bar]]
-
-Array.wrap("foo\nbar") # => ["foo\nbar"]
-Array("foo\nbar") # => ["foo\n", "bar"], in Ruby 1.8
</ruby>
There's also a related idiom that uses the splat operator:

0 comments on commit 693a68f

Please sign in to comment.