From: gabe gabriellini Date: 2012-02-07T04:22:03+09:00 Subject: How to make a command-line string code block argument become a real block of code inside a script If a exec Ruby myprog.rb '{ print " hi body "}' How to convert that string to a real block to pass it to a method def what_u_ask &b yield End what_u_ask ARGV[0] This does not work for me. Thank you. -- Posted via http://www.ruby-forum.com/.