Hacker News new | ask | show | jobs
by tom-lord 4164 days ago

    f << JSON.dump(showings)
avoids adding any new lines (not that it really matters in the case of JSON)
1 comments

Doh, yes. `print` rather than `puts` is also acceptable.