Topic: https://brettterpstra.com/2013/10/26/top-ram-processes-geeklet-mavericks-fixer-upper/
hide preview

What's next? verify your email address for reply notifications!

rnp 11y, 143d ago

You could also use input.each_line which, like String#lines, splits on $/

hide preview

What's next? verify your email address for reply notifications!

Ruurd Pels 11y, 144d ago

Actually I discovered that while fixing Weather geeklet...

hide preview

What's next? verify your email address for reply notifications!

Ruurd Pels 11y, 144d ago

Yes well, a String is not an Enumerable. You can use String#lines to split it into an Enumerable of lines. Looks a bit more portable since it splits on $/ and not on \n

hide preview

What's next? verify your email address for reply notifications!