p = Proc.new{ puts \'ok\' }
Is is possible to see the ruby code in the proc?
inspect returns the memory location:
inspect
Take a look at the sourcify gem:
proc { x + y }.to_source # >> "proc { (x + y) }"