Method: Green::GreenMethods#switch
- Defined in:
- lib/green.rb
#switch(*args) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/green.rb', line 10 def switch(*args) f.transfer(*args).tap do |*res| if res.size == 1 && res.first.is_a?(ThrowException) raise(res.first.exc) end end end |