From: "stephan.zimmer" Date: 2008-10-08T17:32:59+09:00 Subject: Accessing source code of a block Dear all, say I'm given a function "f" taking a block as argument: def f(&block) # some code p "#{block.to_code}" end Is there any way to access the source code of the block, i.e. for calling "f { x+1 }" the "to_code" function would give back "x+1"? Stephan