Tag: OOP
All the articles with the tag "OOP".
Private vs Protected in Ruby: Who's Allowed to Be the Receiver?
Published: at 08:00 AM (3 min read)Ruby's private and protected keywords look like two flavors of the same idea, but the real distinction lives in one rule: who is allowed to be the receiver. Here's what that means, why it matters, and when to reach for each.