Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove ruby 1.8 example from Array.wrap documentation

  • Loading branch information...
commit 693a68f24b399cd86fa0daf010f408ab5d3b3aaf 1 parent 6e9bbe3
Sergey Nartimov lest authored
Showing with 0 additions and 3 deletions.
  1. +0 −3  railties/guides/source/active_support_core_extensions.textile
3  railties/guides/source/active_support_core_extensions.textile
View
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.