From: Infinit Blue Date: 2008-04-09T01:08:18+09:00 Subject: How to modify the param value in block For example I hv the following code: def test n = 1 yield(n) puts n end -------- test {|x| x = x + 1; puts x} the output is: 2 1 How can I modify the parameter x in block? Appreciate for your help. -- Posted via http://www.ruby-forum.com/.