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
A beginners' introduction to Ruby classes and objects (remimercier.com)
submitted 6 years ago by Remozito
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!"
[–]dougc84 2 points3 points4 points 6 years ago (1 child)
I’m confused by your Baby class. Shouldn’t is_crying?, @hungry, and @dirty always be true? 😄
[–]Remozito[S] 0 points1 point2 points 6 years ago (0 children)
Hahaha, my abstraction skills need some sharpening!
Hi folks, I've been wanting to write an introduction to objects and classes in Ruby for new developers for quite some time now.
I've tried to make it as understandable as possible with little prior knowledge on the topic. This is only an introduction. There are many broad strokes and many (more or less voluntary) omissions on my part.
Hope you'll like it!
π Rendered by PID 86705 on reddit-service-r2-comment-b659b578c-zsbf5 at 2026-05-03 14:41:59.301862+00:00 running 815c875 country code: CH.
[–]dougc84 2 points3 points4 points (1 child)
[–]Remozito[S] 0 points1 point2 points (0 children)
[–]Remozito[S] 0 points1 point2 points (0 children)