How can we define 3 methods with the same structure?
By hand :
Using define_method :
Using a simple loop :