Can method names be capitalized?
Answer / Aarti
Yes, in Ruby, method names can start with a capital letter. In fact, it is common to use Capitalized Words to denote Class Names and Capitalized letters separated by underscores for Method Names.
| Is This Answer Correct ? | 0 Yes | 0 No |
How would you freeze an object in ruby? Can you provide a simple example?
What is the difference between extend and include?
Explain when self.up and self.down method is used?
Tell me what is the role of sub-directory app/controllers and app/helpers?
Explain me what the difference is between false and nil in ruby?
What are the data types in ruby?
Explain Ruby hashes?
Does hash use “ #==” or “#eql?” To compare hash keys?
Explain about methods?
What are the key features of ruby?
What is the difference between calling super and calling super()?
Explain the three levels of access control for ruby methods?