From 693a68f24b399cd86fa0daf010f408ab5d3b3aaf Mon Sep 17 00:00:00 2001 From: Sergey Nartimov Date: Thu, 5 Jan 2012 23:03:53 +0300 Subject: remove ruby 1.8 example from Array.wrap documentation --- railties/guides/source/active_support_core_extensions.textile | 3 --- 1 file changed, 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: 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 There's also a related idiom that uses the splat operator: -- cgit v1.2.3