Comment Comment by reddyonrails total_sum = total.currysum_of_cubes = total_sum.(lambda { |x| x^3} )sum_of_cubes.(1,2)In ruby way parent reddyonrails 12 years ago
sum_of_cubes = total_sum.(lambda { |x| x^3} )
sum_of_cubes.(1,2)
In ruby way