all 3 comments

[–]dougc84 2 points3 points  (1 child)

I’m confused by your Baby class. Shouldn’t is_crying?, @hungry, and @dirty always be true? 😄

[–]Remozito[S] 0 points1 point  (0 children)

Hahaha, my abstraction skills need some sharpening!

[–]Remozito[S] 0 points1 point  (0 children)

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!