tag -> object
[permalink][rdoc][edit]-
Kernel.#throw に指定した tag を返します。
def do_complicated_things throw :uncaught_label end begin do_complicated_things rescue UncaughtThrowError => ex p ex.tag # => ":uncaught_label" end
tag -> object
[permalink][rdoc][edit]Kernel.#throw に指定した tag を返します。
def do_complicated_things
throw :uncaught_label
end
begin
do_complicated_things
rescue UncaughtThrowError => ex
p ex.tag # => ":uncaught_label"
end