Access level « Class « Ruby






1.Ruby gives you three levels of access:
2.When you use an access modifier, all the methods that follow are defined with that access, until you use a different access modifier.
3.A class with public, protected and private accessors
4.label methods: private or protected will have the indicated visibility until changed or until the definition ends.