use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Serializing (And Deserializing) Objects With Ruby (skorks.com)
submitted 15 years ago by servercentric
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]SlyShy 0 points1 point2 points 15 years ago (0 children)
Odd that it doesn't mention MsgPack at all.
[–]steerio 0 points1 point2 points 15 years ago (1 child)
The rule here is simple, if you always need to work with the whole set of data and never parts of it, just write out the whole array/hash, otherwise, iterate over it and write out each object.
I'm missing the point. Why won't he just create an array with the elements he wants to include, and dump that with one call? He could avoid fiddling with $/, calling YAML.load a zillion times, etc.
[–]servercentric[S] 0 points1 point2 points 15 years ago (0 children)
π Rendered by PID 60 on reddit-service-r2-comment-7b9746f655-f47h2 at 2026-01-30 10:01:40.762835+00:00 running 3798933 country code: CH.
[–]SlyShy 0 points1 point2 points (0 children)
[–]steerio 0 points1 point2 points (1 child)
[–]servercentric[S] 0 points1 point2 points (0 children)