summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-catch/mrbgem.rake
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-08-28 17:49:27 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-10-12 18:20:07 +0900
commit7eaaee5405f71c598893e9a022c755f61f11e9ec (patch)
tree031900b5407f92f8c88c6917625340d81a62af76 /mrbgems/mruby-catch/mrbgem.rake
parent471479e723157c1a7df2023ab2eea24fa4ca2246 (diff)
downloadmruby-7eaaee5405f71c598893e9a022c755f61f11e9ec.tar.gz
mruby-7eaaee5405f71c598893e9a022c755f61f11e9ec.zip
Add a new gem: `mruby-catch`.
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 ```
Diffstat (limited to 'mrbgems/mruby-catch/mrbgem.rake')
-rw-r--r--mrbgems/mruby-catch/mrbgem.rake5
1 files changed, 5 insertions, 0 deletions
diff --git a/mrbgems/mruby-catch/mrbgem.rake b/mrbgems/mruby-catch/mrbgem.rake
new file mode 100644
index 000000000..c714d443d
--- /dev/null
+++ b/mrbgems/mruby-catch/mrbgem.rake
@@ -0,0 +1,5 @@
+MRuby::Gem::Specification.new('mruby-catch') do |spec|
+ spec.license = 'MIT'
+ spec.author = 'mruby developers'
+ spec.summary = 'Catch / Throw non-local Jump'
+end