Question from the Ruby (legacy) test

How to add a method to a class in Ruby

Easy

How can we define 3 methods with the same structure?

Author: Olivier MillaStatus: PublishedQuestion passed 24 times
Edit
0
Community Evaluations
developer avatar
Victor Torres
08/05/2024
define_method is not valid to define a method. Using a simple loop have a error x variable definition .