instance method UncaughtThrowError#value

value -> object[permalink][rdoc][edit]

Kernel.#throw に指定した value を返します。



def do_complicated_things
  throw :uncaught_label, "uncaught_value"
end

begin
  do_complicated_things
rescue UncaughtThrowError => ex
  p ex.value # => "uncaught_value"
end