Explain about the defined operator in ruby?
Answer / Vimlesh Kumar Gupta
The self.up and self.down methods are typically found in Active Record (a Ruby ORM) models for handling record navigation within a database table. The self.up method is used to go up one row from the current record, while the self.down method moves down one row.
| Is This Answer Correct ? | 0 Yes | 0 No |
Tell me an array [1,2,34,5,6,7,8,9], product it using a method?
What is retry statement in ruby?
Explain ruby ranges. What are the ways to define ranges?
Tell me what are blocks and procs?
Explain the three levels of access control for ruby methods?
In how many ways items can be added in an array in Ruby?
Can you list out the few features of ruby?
Are numeric objects mutable in ruby?
Tell me how you can create a controller for subject?
How can you removed from array in ruby?
what is the difference extend and include?
How would you freeze an object in ruby?