What is ruby class?
Answer / Simpal
In Ruby, a class is a blueprint or template that defines the behavior of objects. Classes define methods and variables that are shared among all instances (objects) of that class.
| Is This Answer Correct ? | 0 Yes | 0 No |
How many types of associations relationships does a model has?
Do you know when self.up and self.down method is used?
How many iterators are there in ruby?
What are blocks and procs?
In Ruby code, often it is observed that coder uses a short hand form of using an expression like array.map(&:method_name) instead of array.map { |element| element.method_name }. How this trick actually works?
Can method names be capitalized?
What is mvc? And how it works?
Please explain each of the following operators and how and when they should be used: ==, ===, eql?, Equal?
difference between activesupport's “hashwithindifferentaccess” and ruby's “hash”?
What are some advantages of using ruby?
Do you know about dig, float and max?
Tell me can you call a private method outside a ruby class using its object?