aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Nartimov <just.lest@gmail.com>2012-01-05 23:03:53 +0300
committerSergey Nartimov <just.lest@gmail.com>2012-01-05 23:03:53 +0300
commit693a68f24b399cd86fa0daf010f408ab5d3b3aaf (patch)
tree8ebd02dd8c0cd1df261c7160ab85d6aa996e4b5d
parent6e9bbe3d0b55e86e0613e99df98c001fdebd37a9 (diff)
downloadrails-693a68f24b399cd86fa0daf010f408ab5d3b3aaf.tar.gz
rails-693a68f24b399cd86fa0daf010f408ab5d3b3aaf.tar.bz2
rails-693a68f24b399cd86fa0daf010f408ab5d3b3aaf.zip
remove ruby 1.8 example from Array.wrap documentation
-rw-r--r--railties/guides/source/active_support_core_extensions.textile3
1 files changed, 0 insertions, 3 deletions
diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile
index 1c82a2941f..126e44caaa 100644
--- a/railties/guides/source/active_support_core_extensions.textile
+++ b/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: