K
Kyung won Cheon
def a
blk = Proc.new { return }
blk.call
end
a # => It's OK
def a(blk)
blk.call
end
blk = lambda { return }
a blk # => It's OK
blk = Proc.new { return }
a blk # => unexpected return (LocalJumpError)
############
# Help Me^^
############
blk = Proc.new { return }
blk.call
end
a # => It's OK
def a(blk)
blk.call
end
blk = lambda { return }
a blk # => It's OK
blk = Proc.new { return }
a blk # => unexpected return (LocalJumpError)
############
# Help Me^^
############