summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-catch
AgeCommit message (Collapse)Author
2020-10-12Add a new gem: `mruby-catch`.Yukihiro "Matz" Matsumoto
Implements `catch`/`throw` non-local jump inherited from Lisp. `catch([tag]) {|tag| block } -> obj` Example: ``` catch(:foo) { 123 } # => 123 catch(:foo) { throw(:foo, 456) } # => 456 catch(:foo) { throw(:foo) } # => nil ```