How is visibility of methods changed in ruby (encapsulation) ?
Answer / Kamlesh Bhumarkar
In Ruby, you can control the visibility of methods by changing their names. Private methods start with a single underscore (_), protected methods start with double underscores (__) and public methods have no special prefix. Class methods are automatically public.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are filters? and how many types of filters are there in ruby
Why ruby on rails is used for?
How would you create a controller for the subject?
What is the naming convention for variables?
How many types of associations relationships does a model have?
What is the symbol garbage collector?
what is the role of Rails Controller?
Explain the features of ruby on rails.
I would like to know about ruby on rails.I want to know.how will be the future for ruby on rails.please tell me.
Is ruby on rails dying?
What is rake?
How is calling super() different from the super call?