diff options
author | Sergey Nartimov <just.lest@gmail.com> | 2012-01-05 23:03:53 +0300 |
---|---|---|
committer | Sergey Nartimov <just.lest@gmail.com> | 2012-01-05 23:03:53 +0300 |
commit | 693a68f24b399cd86fa0daf010f408ab5d3b3aaf (patch) | |
tree | 8ebd02dd8c0cd1df261c7160ab85d6aa996e4b5d /railties/guides | |
parent | 6e9bbe3d0b55e86e0613e99df98c001fdebd37a9 (diff) | |
download | rails-693a68f24b399cd86fa0daf010f408ab5d3b3aaf.tar.gz rails-693a68f24b399cd86fa0daf010f408ab5d3b3aaf.tar.bz2 rails-693a68f24b399cd86fa0daf010f408ab5d3b3aaf.zip |
remove ruby 1.8 example from Array.wrap documentation
Diffstat (limited to 'railties/guides')
-rw-r--r-- | railties/guides/source/active_support_core_extensions.textile | 3 |
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: |