Say I have this Ruby method:
def get_proc_from_block(&block)
return block
end
Now if I call it with a block like this:
p = get_proc_from_block(&:length)
...is there any way for me to somehow inspect p
and get the string "length"
from it?