Hacker News new | past | comments | ask | show | jobs | submit login

Array("foo\nbar") # => ["foo\n", "bar"]

Listed as a gotcha, but it only occurs on an old version of Ruby (1.8). Nowadays, it'll work like so:

Array("foo\nbar") # => ["foo\nbar"]




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: