Skip to content
This repository
Browse code

remove ruby 1.8 example from Array.wrap documentation

  • Loading branch information...
commit 693a68f24b399cd86fa0daf010f408ab5d3b3aaf 1 parent 6e9bbe3
Sergey Nartimov authored
3  railties/guides/source/active_support_core_extensions.textile
Source Rendered
@@ -2238,9 +2238,6 @@ The last point is particularly worth comparing for some enumerables:
2238 2238
 <ruby>
2239 2239
 Array.wrap(:foo => :bar) # => [{:foo => :bar}]
2240 2240
 Array(:foo => :bar)      # => [[:foo, :bar]]
2241  
-
2242  
-Array.wrap("foo\nbar")   # => ["foo\nbar"]
2243  
-Array("foo\nbar")        # => ["foo\n", "bar"], in Ruby 1.8
2244 2241
 </ruby>
2245 2242
 
2246 2243
 There's also a related idiom that uses the splat operator:

0 notes on commit 693a68f

Please sign in to comment.
Something went wrong with that request. Please try again.