Method: Cond::DSL#restartable

Defined in:
lib/cond/dsl_definition.rb

#restartable(&block) ⇒ Object

Begin a restartable block. A handler may transfer control to one of the restarts in this block.



16
17
18
# File 'lib/cond/dsl_definition.rb', line 16

def restartable(&block)
  Cond.run_code_section(RestartableSection, &block)
end