Implementation of catch and throw in mruby.
Ruby
Switch branches/tags
Nothing to show
Clone or download
Latest commit b2900a2 Sep 21, 2015

README.md

mruby-catch-throw

An implementation of ruby's catch and throw.

mrb_config.rb:

MRuby::Build.new do |conf|
...
conf.gem github: 'IceDragon200/mruby-catch-throw'
...
end

Usage:

# just like your regular ruby catch & throw
catch :ball do 
  pitcher.wind_up
  throw :ball
end