Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
Menu
Access level « Class « Ruby
Ruby
Class
Access level
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.