What is ruby class?



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

Post New Answer

More Ruby Interview Questions

How many types of associations relationships does a model has?

1 Answers  


Do you know when self.up and self.down method is used?

1 Answers  


How many iterators are there in ruby?

1 Answers  


What are blocks and procs?

1 Answers  


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?

1 Answers  


Can method names be capitalized?

1 Answers  


What is mvc? And how it works?

1 Answers  


Please explain each of the following operators and how and when they should be used: ==, ===, eql?, Equal?

1 Answers  


difference between activesupport's “hashwithindifferentaccess” and ruby's “hash”?

1 Answers  


What are some advantages of using ruby?

1 Answers  


Do you know about dig, float and max?

1 Answers  


Tell me can you call a private method outside a ruby class using its object?

1 Answers  


Categories