practice with procs and lambdas in ruby

see title