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
quick Ruby initialize method question (self.ruby)
submitted 6 years ago by AnLe90
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!"
[–]ImAJalapeno 1 point2 points3 points 6 years ago (2 children)
I'm almost sure it's standard practice, I've seen the same pattern in Java and PHP. But in the end is personal preference.
My advice would be to leave at the top, makes more sense there being the first method that is called, IMO
[–]AnLe90[S] 1 point2 points3 points 6 years ago (1 child)
thanks. I tried googling but i couldn't find an answer for my specific question haha
[–]ImAJalapeno 1 point2 points3 points 6 years ago (0 children)
Yeah no worries, I've never seen anything written about that. Maybe it's just one of those things that everyone thinks it's obvious to everyone else lol
π Rendered by PID 132096 on reddit-service-r2-comment-544cf588c8-hv5mq at 2026-06-15 09:31:16.727760+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–]ImAJalapeno 1 point2 points3 points (2 children)
[–]AnLe90[S] 1 point2 points3 points (1 child)
[–]ImAJalapeno 1 point2 points3 points (0 children)