Can you call a private method outside a ruby class using its object?
Answer / Vishal Jane
No, private methods in Ruby can only be called within the same class where they are defined. They cannot be accessed or invoked from outside of the class or even by its objects.
| Is This Answer Correct ? | 0 Yes | 0 No |
Do you know how ruby looks up a method to invoke?
what is the syntax for Ruby collect Iterator?
What does mri most commonly stand for?
Mention what is the command to create a migration?
Is ruby supports single inheritance/ multiple inheritance or both?
What is ruby object?
What is the difference between nil and false in ruby?
How is visibility of methods changed in ruby?
What is rvm?
Explain while loop in ruby.
What must you do first before you can invoke an unboundmethod object?
what is Interpolation in Ruby?