RubyFlow The Ruby and Rails community linklog

Ruby Access Control – Are Private And Protected Methods Only A Guideline?

The concept of private, protected and public methods in Ruby is somewhat different than it is in languages like Java, it’s all about which object is the receiver of a particular method call. Let’s take a closer look at how access control works in Ruby.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in