Welcome to Findnerd. Today we are going to discuss callback or map function in Ruby. If we talk about the callback function then it is used for arrays, hashes as well as ranges. map as well callback is used for same purposes so you can use either one. Please have a look.