Arlen Cuss wrote:
> [2, 4, 6].map {|q| return q * 2}

with your post and that of Jari i now understand:

irb(main):001:0> [2, 4, 6].map {|q| return q * 2}
LocalJumpError: unexpected return
         from (irb):1
         from (irb):1:in `map'
         from (irb):1


as expected. but if i put it inside a method

irb(main):002:0> def hello
irb(main):003:1> [2, 4, 6].map {|q| return q * 2}
irb(main):004:1> end
=> nil
irb(main):005:0> hello
=> 4