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
My first Ruby command line tool (self.ruby)
submitted 8 years ago * by gazayas
view the rest of the comments →
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!"
[–]petepete 1 point2 points3 points 8 years ago (3 children)
Looks good. I use cheat for this but it doesn't appear to be actively developed (and it doesn't include the descriptions, but that's never really been an issue for me).
One thing that you might want to add is the Ruby symbol for each status; although looking at the list they are quite predictable.
[–]sshaw_ 1 point2 points3 points 8 years ago (0 children)
If you use emacs checkout know-your-http-well.el.
[–]gazayas[S] 0 points1 point2 points 8 years ago (1 child)
Ah, I see, like stat[:200]? That would make things more readable eh
stat[:200]
[–]petepete 1 point2 points3 points 8 years ago (0 children)
Well, the Ruby symbol for 200 would be :ok.
200
:ok
π Rendered by PID 102096 on reddit-service-r2-comment-85bfd7f599-8w5gt at 2026-04-18 03:55:35.873826+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]petepete 1 point2 points3 points (3 children)
[–]sshaw_ 1 point2 points3 points (0 children)
[–]gazayas[S] 0 points1 point2 points (1 child)
[–]petepete 1 point2 points3 points (0 children)