• Yukihiro "Matz" Matsumoto's avatar
    Add a new gem: `mruby-catch`. · 7eaaee54
    Yukihiro "Matz" Matsumoto authored
    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
    ```
    7eaaee54
catch.rb 423 Bytes