def mymethod(proc1,proc2,&block) proc1.call yield if block_given? proc2.call end mymethod(Proc.new {},Proc.new {}) do # ... end
但是,它很少有意义.